ModuleBuilder.IsDefined(Type, Boolean) Metoda

Definice

Vrátí hodnotu, která označuje, zda byl zadaný typ atributu použit pro tento modul.

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 se na tento modul použila jedna nebo více instancí attributeType , v opačném případě false.

Výjimky

attributeType je null.

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

Platí pro