TypeIdentifierAttribute Konstruktory

Definicja

Tworzy nowe wystąpienie klasy TypeIdentifierAttribute.

Przeciążenia

TypeIdentifierAttribute()

Tworzy nowe wystąpienie klasy TypeIdentifierAttribute.

TypeIdentifierAttribute(String, String)

Tworzy nowe wystąpienie TypeIdentifierAttribute klasy z określonym zakresem i identyfikatorem.

TypeIdentifierAttribute()

Źródło:
TypeIdentifierAttribute.cs
Źródło:
TypeIdentifierAttribute.cs
Źródło:
TypeIdentifierAttribute.cs

Tworzy nowe wystąpienie klasy TypeIdentifierAttribute.

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

Uwagi

To przeciążenie konstruktora nie akceptuje parametrów. W związku z tym interfejsy, które mają ten atrybut, używają identyfikatora GUID typu i prostej nazwy w celu ustalenia równoważności typów.

Dotyczy

TypeIdentifierAttribute(String, String)

Źródło:
TypeIdentifierAttribute.cs
Źródło:
TypeIdentifierAttribute.cs
Źródło:
TypeIdentifierAttribute.cs

Tworzy nowe wystąpienie TypeIdentifierAttribute klasy z określonym zakresem i identyfikatorem.

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

Pierwszy ciąg równoważności typu.

identifier
String

Drugi ciąg równoważności typu.

Uwagi

Parametry scope i identifier służą do ustanawiania równoważności typów. Są one łączone w identyfikator GUID i stają się kluczem używanym do równoważności typów. Ten konstruktor jest szczególnie przydatny w przypadku typów, które nie mają identyfikatorów GUID w bibliotece typów.

Klasa TypeIdentifierAttribute wewnętrznie utrzymuje scope parametry i identifier jako prywatne elementy członkowskie.

Dotyczy