TypeIdentifierAttribute Construtores
Definição
Cria uma nova instância da classe TypeIdentifierAttribute.Creates a new instance of the TypeIdentifierAttribute class.
Sobrecargas
| TypeIdentifierAttribute() |
Cria uma nova instância da classe TypeIdentifierAttribute.Creates a new instance of the TypeIdentifierAttribute class. |
| TypeIdentifierAttribute(String, String) |
Cria uma nova instância da classe TypeIdentifierAttribute com o escopo especificado e o identificador.Creates a new instance of the TypeIdentifierAttribute class with the specified scope and identifier. |
TypeIdentifierAttribute()
Cria uma nova instância da classe TypeIdentifierAttribute.Creates a new instance of the TypeIdentifierAttribute class.
public:
TypeIdentifierAttribute();
public TypeIdentifierAttribute ();
Public Sub New ()
Comentários
Essa sobrecarga de construtor não aceita parâmetros.This constructor overload does not accept parameters. Portanto, as interfaces que têm esse atributo usam o GUID do tipo e o nome simples para estabelecer a equivalência do tipo.Therefore, interfaces that have this attribute use the type's GUID and simple name to establish type equivalence.
Aplica-se a
TypeIdentifierAttribute(String, String)
Cria uma nova instância da classe TypeIdentifierAttribute com o escopo especificado e o identificador.Creates a new instance of the TypeIdentifierAttribute class with the specified scope and identifier.
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)
Parâmetros
- scope
- String
A primeira cadeia de caracteres de equivalência de tipo.The first type equivalence string.
- identifier
- String
A segunda cadeia de caracteres de equivalência de tipo.The second type equivalence string.
Comentários
Os scope identifier parâmetros e são usados para estabelecer equivalência de tipo.The scope and identifier parameters are used to establish type equivalence. Eles são combinados em um GUID e tornam-se a chave usada para equivalência de tipo.They are combined into a GUID and become the key that is used for type equivalence. Esse construtor é particularmente útil para tipos que não têm GUIDs em sua biblioteca de tipos.This constructor is particularly useful for types that do not have GUIDs in their type library.
A TypeIdentifierAttribute classe mantém internamente os scope identifier parâmetros e como membros privados.The TypeIdentifierAttribute class internally maintains the scope and identifier parameters as private members.