TypeIdentifierAttribute Konstruktorer

Definition

Skapar en ny instans av TypeIdentifierAttribute klassen.

Överlagringar

Name Description
TypeIdentifierAttribute()

Skapar en ny instans av TypeIdentifierAttribute klassen.

TypeIdentifierAttribute(String, String)

Skapar en ny instans av TypeIdentifierAttribute klassen med angivet omfång och identifierare.

TypeIdentifierAttribute()

Källa:
TypeIdentifierAttribute.cs
Källa:
TypeIdentifierAttribute.cs
Källa:
TypeIdentifierAttribute.cs
Källa:
TypeIdentifierAttribute.cs
Källa:
TypeIdentifierAttribute.cs

Skapar en ny instans av TypeIdentifierAttribute klassen.

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

Kommentarer

Den här konstruktorns överlagring accepterar inte parametrar. Därför använder gränssnitt som har det här attributet typens GUID och enkla namn för att upprätta typjämvikt.

Gäller för

TypeIdentifierAttribute(String, String)

Källa:
TypeIdentifierAttribute.cs
Källa:
TypeIdentifierAttribute.cs
Källa:
TypeIdentifierAttribute.cs
Källa:
TypeIdentifierAttribute.cs
Källa:
TypeIdentifierAttribute.cs

Skapar en ny instans av TypeIdentifierAttribute klassen med angivet omfång och identifierare.

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)

Parametrar

scope
String

Den första typen av ekvivalenssträng.

identifier
String

Den andra typen av ekvivalenssträng.

Kommentarer

Parametrarna scope och identifier används för att fastställa typjämvikt. De kombineras till ett GUID och blir nyckeln som används för typjämvikt. Den här konstruktorn är särskilt användbar för typer som inte har GUID i sitt typbibliotek.

Klassen TypeIdentifierAttribute underhåller internt parametrarna scope och identifier som privata medlemmar.

Gäller för