TypeIdentifierAttribute Konstruktory

Definice

Vytvoří novou instanci třídy TypeIdentifierAttribute.

Přetížení

TypeIdentifierAttribute()

Vytvoří novou instanci třídy TypeIdentifierAttribute.

TypeIdentifierAttribute(String, String)

Vytvoří novou instanci TypeIdentifierAttribute třídy se zadaným oborem a identifikátorem.

TypeIdentifierAttribute()

Vytvoří novou instanci třídy TypeIdentifierAttribute.

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

Poznámky

Toto přetížení konstruktoru nepřijímá parametry. Rozhraní, která mají tento atribut, proto k vytvoření ekvivalence typů používají identifikátor GUID a jednoduchý název typu.

Platí pro

TypeIdentifierAttribute(String, String)

Vytvoří novou instanci TypeIdentifierAttribute třídy se zadaným oborem a identifikátorem.

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)

Parametry

scope
String

První řetězec ekvivalence typu.

identifier
String

Druhý řetězec ekvivalence typu.

Poznámky

Parametry scope se identifier používají k vytvoření ekvivalence typů. Zkombinují se do identifikátoru GUID a stanou se klíčem, který se používá pro ekvivalenci typů. Tento konstruktor je zvláště užitečný pro typy, které nemají identifikátory GUID v knihovně typů.

Třída TypeIdentifierAttribute interně udržuje scope a identifier parametry jako soukromé členy.

Platí pro