ModuleBuilder.IsDefined(Type, Boolean) Método

Definição

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

Parâmetros

attributeType
Type

O tipo de atributo personalizado para o qual testar.

inherit
Boolean

Este argumento é ignorado para objetos deste tipo.

Retornos

Boolean

true se uma ou mais instâncias de attributeType tiver sido aplicada a este módulo; caso contrário, false.

Exceções

attributeType é null.

attributeType não é um objeto Type fornecido pelo runtime. Por exemplo, attributeType é um objeto TypeBuilder.

Aplica-se a