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

Esse argumento é ignorado para objetos desse tipo.

Retornos

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

Exceções

attributeType é null.

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

Aplica-se a