ComClassAttribute.ClassID 屬性

定義

取得用來唯一識別類別的類別 ID。

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

屬性值

唯讀。 字串,當建立 COM 物件時,編譯器可用來唯一識別類別。

備註

建構函式會在套用至 類別時 ComClassAttribute 設定這個屬性。

適用於

另請參閱