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

1 番目の型の同値文字列。

identifier
String

2 番目の型の同値文字列。

注釈

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

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

適用対象