MemberInfo.ICustomAttributeProvider.IsDefined(Type, Boolean) Método

Definição

Indica se uma ou mais instâncias de attributeType estão definidas nesse membro.

 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

Parâmetros

attributeType
Type

O tipo dos atributos personalizados.

inherit
Boolean

Quando ele for true, pesquise a cadeia de hierarquia do atributo personalizado herdado.

Retornos

Boolean

true se o attributeType está definido neste membro; caso contrário, false.

Implementações

Aplica-se a