Compartir a través de


ActionDescriptor.IsDefined(Type, Boolean) Método

Definición

Determina si están definidas una o más instancias del tipo de atributo especificado para este miembro.

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

Tipo del atributo personalizado.

inherit
Boolean

true para buscar la cadena de jerarquía para el atributo personalizado heredado; de lo contrario, false.

Devoluciones

true si attributeType se define para este miembro; de lo contrario, false.

Implementaciones

Excepciones

El parámetro attritubeType es null.

Se aplica a