ModuleBuilder.IsDefined(Type, Boolean) Método

Definição

Devolve 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 a testar.

inherit
Boolean

Este argumento é ignorado para objetos deste tipo.

Devoluções

true se uma ou mais instâncias de attributeType foram 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