TypeIdentifierAttribute Konstruktory
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vytvoří novou instanci TypeIdentifierAttribute třídy.
Přetížení
| Name | Description |
|---|---|
| TypeIdentifierAttribute() |
Vytvoří novou instanci TypeIdentifierAttribute třídy. |
| TypeIdentifierAttribute(String, String) |
Vytvoří novou instanci TypeIdentifierAttribute třídy se zadaným oborem a identifikátorem. |
TypeIdentifierAttribute()
Vytvoří novou instanci TypeIdentifierAttribute třídy.
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
scope Parametry identifier se 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.