ModuleBuilder.IsDefined(Type, Boolean) Metod

Definition

Returnerar ett värde som anger om den angivna attributtypen har tillämpats på den här modulen.

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

Parametrar

attributeType
Type

Typ av anpassat attribut att testa för.

inherit
Boolean

Det här argumentet ignoreras för objekt av den här typen.

Returer

trueom en eller flera instanser av attributeType har tillämpats på den här modulen, annars . false

Undantag

attributeType är null.

attributeType är inte ett Type objekt som tillhandahålls av körningen. Till exempel attributeType är ett TypeBuilder objekt.

Gäller för