ModuleBuilder.IsDefined(Type, Boolean) Metoda

Definice

Vrátí hodnotu, která určuje, zda byl zadaný typ atributu použit v tomto modulu.

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

Parametry

attributeType
Type

Typ vlastního atributu, pro který se má testovat.

inherit
Boolean

Tento argument je ignorován pro objekty tohoto typu.

Návraty

true pokud byla v tomto modulu použita jedna nebo více instancí attributeType ; v opačném případě false.

Výjimky

attributeType je null.

attributeType není Type objekt poskytnutý modulem runtime. Jedná se například attributeType o TypeBuilder objekt.

Platí pro