TypeIdentifierAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 TypeIdentifierAttribute 類別的新執行個體。
多載
TypeIdentifierAttribute() |
建立 TypeIdentifierAttribute 類別的新執行個體。 |
TypeIdentifierAttribute(String, String) |
使用指定的範圍和識別項,建立 TypeIdentifierAttribute 類別的新執行個體。 |
TypeIdentifierAttribute()
建立 TypeIdentifierAttribute 類別的新執行個體。
public:
TypeIdentifierAttribute();
public TypeIdentifierAttribute ();
Public Sub New ()
備註
這個建構函式多載不接受參數。 因此,具有此屬性的介面會使用類型的 GUID 和簡單名稱來建立類型等價。
適用於
TypeIdentifierAttribute(String, String)
使用指定的範圍和識別項,建立 TypeIdentifierAttribute 類別的新執行個體。
public:
TypeIdentifierAttribute(System::String ^ scope, System::String ^ identifier);
public TypeIdentifierAttribute (string scope, string identifier);
public TypeIdentifierAttribute (string? scope, string? identifier);
new System.Runtime.InteropServices.TypeIdentifierAttribute : string * string -> System.Runtime.InteropServices.TypeIdentifierAttribute
Public Sub New (scope As String, identifier As String)
參數
- scope
- String
第一個型別對等字串。
- identifier
- String
第二個型別對等字串。
備註
scope
和 identifier
參數可用來建立類型等價。 它們會合並成 GUID,並成為用於類型等價的索引鍵。 此建構函式對於其類型程式庫中沒有 GUID 的類型特別有用。
類別 TypeIdentifierAttribute 會在內部維護 scope
和 identifier
參數做為私用成員。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應