IDispatchConstantAttribute Classe

Definição

Indica que o valor padrão para o campo ou parâmetro atribuído é uma instância de DispatchWrapper, onde o WrappedObject é null.

public ref class IDispatchConstantAttribute sealed : System::Runtime::CompilerServices::CustomConstantAttribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)]
[System.Serializable]
public sealed class IDispatchConstantAttribute : System.Runtime.CompilerServices.CustomConstantAttribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class IDispatchConstantAttribute : System.Runtime.CompilerServices.CustomConstantAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)>]
[<System.Serializable>]
type IDispatchConstantAttribute = class
    inherit CustomConstantAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type IDispatchConstantAttribute = class
    inherit CustomConstantAttribute
Public NotInheritable Class IDispatchConstantAttribute
Inherits CustomConstantAttribute
Herança
IDispatchConstantAttribute
Atributos

Observações

Pode aplicar este atributo a campos ou parâmetros.

O importador de biblioteca de tipos usa este atributo para distinguir um valor padrão de tipo VT_DISPATCH de null.

Para mais informações sobre atributos constantes, consulte a CustomConstantAttribute classe.

As classes em System.Runtime.CompilerServices são apenas para uso dos escritores de compiladores.

Construtores

Name Description
IDispatchConstantAttribute()

Inicializa uma nova instância da IDispatchConstantAttribute classe.

Propriedades

Name Description
TypeId

Quando implementado numa classe derivada, obtém um identificador único para esta Attribute.

(Herdado de Attribute)
Value

Fica a IDispatch constante armazenada neste atributo.

Métodos

Name Description
Equals(Object)

Devolve um valor que indica se esta instância é igual a um objeto especificado.

(Herdado de Attribute)
GetHashCode()

Devolve o código de hash para esta instância.

(Herdado de Attribute)
GetType()

Obtém o Type da instância atual.

(Herdado de Object)
IsDefaultAttribute()

Quando sobrescrito numa classe derivada, indica se o valor desta instância é o valor padrão para a classe derivada.

(Herdado de Attribute)
Match(Object)

Quando sobrescrito numa classe derivada, devolve um valor que indica se esta instância é igual a um objeto especificado.

(Herdado de Attribute)
MemberwiseClone()

Cria uma cópia superficial do atual Object.

(Herdado de Object)
ToString()

Devolve uma cadeia que representa o objeto atual.

(Herdado de Object)

Implementações de Interface Explícita

Name Description
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Mapeia um conjunto de nomes para um conjunto correspondente de identificadores de despacho.

(Herdado de Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

Recupera a informação de tipo de um objeto, que pode ser usada para obter a informação de tipo para uma interface.

(Herdado de Attribute)
_Attribute.GetTypeInfoCount(UInt32)

Recupera o número de interfaces de informações de tipo que um objeto fornece (0 ou 1).

(Herdado de Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Proporciona acesso a propriedades e métodos expostos por um objeto.

(Herdado de Attribute)

Aplica-se a