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 в противном случае.

Реализации

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