NativeMarshallingAttribute Classe
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Atributo usado para fornecer um tipo de marshaller personalizado padrão para um determinado tipo gerenciado.
public ref class NativeMarshallingAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct)]
public sealed class NativeMarshallingAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Struct)]
public sealed class NativeMarshallingAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct)>]
type NativeMarshallingAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Struct)>]
type NativeMarshallingAttribute = class
inherit Attribute
Public NotInheritable Class NativeMarshallingAttribute
Inherits Attribute
- Herança
- Atributos
Comentários
Esse atributo é reconhecido pelos geradores de origem fornecidos por runtime para cenários de interoperabilidade gerados pela origem. Ele não é usado pelo sistema de marshalling de interoperabilidade em runtime.
Construtores
| Nome | Description |
|---|---|
| NativeMarshallingAttribute(Type) |
Inicializa uma nova instância que NativeMarshallingAttribute fornece um tipo de marshalling nativo. |
Propriedades
| Nome | Description |
|---|---|
| NativeType |
Obtém o tipo marshaller usado para converter o tipo atribuído de código gerenciado para nativo. |
| TypeId |
Quando implementado em uma classe derivada, obtém um identificador exclusivo para esse Attribute. (Herdado de Attribute) |
Métodos
| Nome | Description |
|---|---|
| Equals(Object) |
Retorna um valor que indica se essa instância é igual a um objeto especificado. (Herdado de Attribute) |
| GetHashCode() |
Retorna o código hash dessa instância. (Herdado de Attribute) |
| GetType() |
Obtém o Type da instância atual. (Herdado de Object) |
| IsDefaultAttribute() |
Quando substituído em uma classe derivada, indica se o valor dessa instância é o valor padrão para a classe derivada. (Herdado de Attribute) |
| Match(Object) |
Quando substituído em uma classe derivada, retorna um valor que indica se essa instância é igual a um objeto especificado. (Herdado de Attribute) |
| MemberwiseClone() |
Cria uma cópia superficial do Objectatual. (Herdado de Object) |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual. (Herdado de Object) |