Compartilhar via


ActionDescriptor.IsDefined(Type, Boolean) Método

Definição

Determina se uma ou mais instâncias do tipo de atributo especificado são definidas para esse membro.

public virtual bool IsDefined (Type attributeType, bool inherit);
abstract member IsDefined : Type * bool -> bool
override this.IsDefined : Type * bool -> bool
Public Overridable Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean

Parâmetros

attributeType
Type

O tipo do atributo personalizado.

inherit
Boolean

true para pesquisar a cadeia de hierarquia para o atributo personalizado herdado; caso contrário, false.

Retornos

true se attributeType for definido para esse membro; caso contrário, false.

Implementações

Exceções

O parâmetro attritubeType é nulo.

Aplica-se a