ICustomAttributeProvider.IsDefined(Type, Boolean) Método
Definição
Indica se uma ou mais instâncias de attributeType estão definidas nesse membro.Indicates whether one or more instance of attributeType is defined on this member.
public:
bool IsDefined(Type ^ attributeType, bool inherit);
public bool IsDefined (Type attributeType, bool inherit);
abstract member IsDefined : Type * bool -> bool
Public Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean
Parâmetros
- attributeType
- Type
O tipo dos atributos personalizados.The type of the custom attributes.
- inherit
- Boolean
Quando ele for true, pesquise a cadeia de hierarquia do atributo personalizado herdado.When true, look up the hierarchy chain for the inherited custom attribute.
Retornos
true se o attributeType está definido neste membro; caso contrário, false.true if the attributeType is defined on this member; false otherwise.