TypeIdentifierAttribute 建構函式

定義

建立 TypeIdentifierAttribute 類別的新執行個體。

多載

TypeIdentifierAttribute()

建立 TypeIdentifierAttribute 類別的新執行個體。

TypeIdentifierAttribute(String, String)

使用指定的範圍和識別項,建立 TypeIdentifierAttribute 類別的新執行個體。

TypeIdentifierAttribute()

來源:
TypeIdentifierAttribute.cs
來源:
TypeIdentifierAttribute.cs
來源:
TypeIdentifierAttribute.cs

建立 TypeIdentifierAttribute 類別的新執行個體。

public:
 TypeIdentifierAttribute();
public TypeIdentifierAttribute ();
Public Sub New ()

備註

這個建構函式多載不接受參數。 因此,具有此屬性的介面會使用類型的 GUID 和簡單名稱來建立類型等價。

適用於

TypeIdentifierAttribute(String, String)

來源:
TypeIdentifierAttribute.cs
來源:
TypeIdentifierAttribute.cs
來源:
TypeIdentifierAttribute.cs

使用指定的範圍和識別項,建立 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

第二個型別對等字串。

備註

scopeidentifier 參數可用來建立類型等價。 它們會合並成 GUID,並成為用於類型等價的索引鍵。 此建構函式對於其類型程式庫中沒有 GUID 的類型特別有用。

類別 TypeIdentifierAttribute 會在內部維護 scopeidentifier 參數做為私用成員。

適用於