ModuleBuilder.IsDefined(Type, Boolean) Método
Neste artigo
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.
Retorna um valor que indica se o tipo de atributo especificado foi aplicado a este módulo.
public:
override bool IsDefined(Type ^ attributeType, bool inherit);
public override bool IsDefined(Type attributeType, bool inherit);
override this.IsDefined : Type * bool -> bool
Public Overrides Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean
- attributeType
- Type
O tipo de atributo personalizado para o qual testar.
- inherit
- Boolean
Este argumento é ignorado para objetos deste tipo.
true
se uma ou mais instâncias de attributeType
tiver sido aplicada a este módulo; caso contrário, false
.
attributeType
é null
.
attributeType
não é um objeto Type fornecido pelo runtime. Por exemplo, attributeType
é um objeto TypeBuilder.
Produto | Versões |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: