TypeIdentifierAttribute コンストラクター

定義

TypeIdentifierAttribute クラスの新しいインスタンスを作成します。

オーバーロード

名前 説明
TypeIdentifierAttribute()

TypeIdentifierAttribute クラスの新しいインスタンスを作成します。

TypeIdentifierAttribute(String, String)

指定したスコープと識別子を使用して、 TypeIdentifierAttribute クラスの新しいインスタンスを作成します。

TypeIdentifierAttribute()

ソース:
TypeIdentifierAttribute.cs
ソース:
TypeIdentifierAttribute.cs
ソース:
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.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

2 番目の型の等価文字列。

注釈

型の等価性を確立するには、 scope パラメーターと identifier パラメーターを使用します。 これらは GUID に結合され、型の等価性に使用されるキーになります。 このコンストラクターは、タイプ ライブラリに GUID がない型に特に便利です。

TypeIdentifierAttribute クラスは、scopeパラメーターとidentifier パラメーターをプライベート メンバーとして内部的に保持します。

適用対象