Compartilhar via


Método _Assembly.IsDefined (Type, Boolean)

 

Dica

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Fornece objetos COM com acesso independente de versão para o método IsDefined.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (em mscorlib.dll)

Sintaxe

bool IsDefined(
    Type attributeType,
    bool inherit
)
bool IsDefined(
    Type^ attributeType,
    bool inherit
)
abstract IsDefined : 
        attributeType:Type *
        inherit:bool -> bool
Function IsDefined (
    attributeType As Type,
    inherit As Boolean
) As Boolean

Parâmetros

  • attributeType
    Type: System.Type

    O Type do atributo personalizado a ser verificado para este assembly.

  • inherit
    Type: System.Boolean

    Este argumento é ignorado para objetos deste tipo.

Valor Retornado

Type: System.Boolean

true se um atributo personalizado identificado pelo Type especificado for definido; caso contrário, false.

Comentários

Este método é para acesso a classes gerenciadas de código não gerenciado e não deve ser chamado em código gerenciado.

O IsDefined método indica se um atributo personalizado identificado pelo GUID Type está definido.

Informações de Versão

.NET Framework
Disponível desde 1.1

Confira Também

IsDefined
Interface _Assembly
Namespace System.Runtime.InteropServices

Retornar ao início