MemberInfo.ICustomAttributeProvider.IsDefined(Type, Boolean) Methode

Definition

Gibt an, ob mindestens eine Instanz von attributeType für diesen Member definiert ist.

 virtual bool System.Reflection.ICustomAttributeProvider.IsDefined(Type ^ attributeType, bool inherit) = System::Reflection::ICustomAttributeProvider::IsDefined;
bool ICustomAttributeProvider.IsDefined (Type attributeType, bool inherit);
abstract member System.Reflection.ICustomAttributeProvider.IsDefined : Type * bool -> bool
override this.System.Reflection.ICustomAttributeProvider.IsDefined : Type * bool -> bool
Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean Implements ICustomAttributeProvider.IsDefined

Parameter

attributeType
Type

Der Typ der benutzerdefinierten Attribute.

inherit
Boolean

Wenn true, suchen Sie die Hierarchiekette für das geerbte benutzerdefinierte Attribut.

Gibt zurück

true, wenn der attributeType für diesen Member definiert ist, andernfalls false.

Implementiert

Gilt für: