ConstructorBuilder.IsDefined(Type, Boolean) Metoda

Definice

Zkontroluje, jestli je definovaný typ vlastního atributu.

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

Vlastní typ atributu.

inherit
Boolean

Řídí dědičnost vlastních atributů ze základních tříd. Tento parametr je ignorován.

Návraty

truepokud je definován zadaný typ vlastního atributu; v opačném případě . false

Výjimky

Tato metoda se v současné době nepodporuje. Konstruktor můžete načíst pomocí GetConstructor(BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) a volat IsDefined(Type, Boolean) na vrácený ConstructorInfo.

Poznámky

Podrobnosti o formátování binaryAttributenajdete ve specifikaci metadat.

Platí pro