IUnknownConstantAttribute Classe

Definição

Indica que o valor padrão para o campo ou o parâmetro atribuído é uma instância de UnknownWrapper, em que WrappedObject é null. Essa classe não pode ser herdada.

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

Comentários

Você pode aplicar esse atributo a campos ou parâmetros.

O importador de biblioteca de tipos usa esse atributo para distinguir um valor padrão do tipo VT_UNKNOWN null.

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

As classes em System.Runtime.CompilerServices são somente para gravadores de compilador.

Construtores

IUnknownConstantAttribute()

Inicializa uma nova instância da classe IUnknownConstantAttribute.

Propriedades

TypeId

Quando implementado em uma classe derivada, obtém um identificador exclusivo para este Attribute.

(Herdado de Attribute)
Value

Obtém a constante IUnknown armazenada nesse atributo.

Métodos

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 para a 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 Object atual.

(Herdado de Object)
ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.

(Herdado de Object)

Implantações explícitas de interface

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

Mapeia um conjunto de nomes para um conjunto correspondente de identificadores de expedição.

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

Recupera as informações de tipo para um objeto, que pode ser usado para obter as informações de tipo para uma interface.

(Herdado de Attribute)
_Attribute.GetTypeInfoCount(UInt32)

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

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

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

(Herdado de Attribute)

Aplica-se a