MemberInfo.ICustomAttributeProvider.IsDefined(Type, Boolean) Метод

Определение

Указывает, сколько экземпляров 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

Параметры

attributeType
Type

Тип настраиваемых атрибутов.

inherit
Boolean

Значение true, если требуется просмотреть цепочку иерархии для поиска унаследованного настраиваемого атрибута.

Возвращаемое значение

Значение true, если для этого элемента определен тип attributeType. В противном случае — значение false.

Реализации

Применяется к