ComClassAttribute.EventID 屬性

定義

會獲得一個事件 ID,用來唯一識別事件。

public:
 property System::String ^ EventID { System::String ^ get(); };
public string EventID { get; }
member this.EventID : string
Public ReadOnly Property EventID As String

屬性值

唯讀。 一個字串,編譯器可用來在建立 COM 物件時唯一識別該類別的事件。

備註

當 將 ComClassAttribute 應用於類別時,建構子會設定此性質。

適用於

另請參閱