TypeIdentifierAttribute Construtores
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Cria uma nova instância da TypeIdentifierAttribute classe.
Sobrecargas
| Name | Description |
|---|---|
| TypeIdentifierAttribute() |
Cria uma nova instância da TypeIdentifierAttribute classe. |
| TypeIdentifierAttribute(String, String) |
Cria uma nova instância da TypeIdentifierAttribute classe com o âmbito e identificador especificados. |
TypeIdentifierAttribute()
- Origem:
- TypeIdentifierAttribute.cs
- Origem:
- TypeIdentifierAttribute.cs
- Origem:
- TypeIdentifierAttribute.cs
- Origem:
- TypeIdentifierAttribute.cs
- Origem:
- TypeIdentifierAttribute.cs
Cria uma nova instância da TypeIdentifierAttribute classe.
public:
TypeIdentifierAttribute();
public TypeIdentifierAttribute();
Public Sub New ()
Observações
Esta sobrecarga de construtores não aceita parâmetros. Portanto, interfaces que possuem este atributo utilizam o GUID do tipo e o nome simples para estabelecer equivalência de tipos.
Aplica-se a
TypeIdentifierAttribute(String, String)
- Origem:
- TypeIdentifierAttribute.cs
- Origem:
- TypeIdentifierAttribute.cs
- Origem:
- TypeIdentifierAttribute.cs
- Origem:
- TypeIdentifierAttribute.cs
- Origem:
- TypeIdentifierAttribute.cs
Cria uma nova instância da TypeIdentifierAttribute classe com o âmbito e identificador especificados.
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 equivalência de tipos.
- identifier
- String
A segunda cadeia de equivalência de tipos.
Observações
Os scope parâmetros e identifier são usados para estabelecer equivalência de tipos. São combinados num GUID e tornam-se a chave usada para a equivalência de tipos. Este construtor é particularmente útil para tipos que não têm GUIDs na sua biblioteca de tipos.
A TypeIdentifierAttribute turma mantém internamente os scope parâmetros e identifier como membros privados.