MethodBuilder.IsDefined(Type, Boolean) Metódus

Definíció

Ellenőrzi, hogy a megadott egyéni attribútumtípus definiálva van-e.

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

Paraméterek

attributeType
Type

Az egyéni attribútumtípus.

inherit
Boolean

Megadja, hogy a tag öröklési láncában keresve keresse-e meg az egyéni attribútumokat.

Válaszok

trueha a megadott egyéni attribútumtípus definiálva van; egyéb esetben. false

Kivételek

Ez a módszer jelenleg nem támogatott. Kérje le a metódust a visszaadott metódus használatával GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) és hívásávalIsDefined(Type, Boolean).MethodInfo

A következőre érvényes: