Module.ICustomAttributeProvider.IsDefined(Type, Boolean) Metoda

Definicja

Wskazuje, czy na tym elemencie członkowskim zdefiniowano jedno lub więcej wystąpień attributeType .

 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

Parametry

attributeType
Type

Typ atrybutów niestandardowych.

inherit
Boolean

W przypadku trueelementu wyszukaj łańcuch hierarchii dla dziedziczonego atrybutu niestandardowego.

Zwraca

true jeśli element attributeType jest zdefiniowany na tym elemencie członkowskim; false w przeciwnym razie.

Implementuje

Dotyczy