TypeDelegator.IsDefined(Type, Boolean) Método

Definição

Indica se um atributo personalizado identificado por attributeType ele está definido.

public:
 override bool IsDefined(Type ^ attributeType, bool inherit);
public override bool IsDefined(Type attributeType, bool inherit);
override this.IsDefined : Type * bool -> bool
Public Overrides Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean

Parâmetros

attributeType
Type

Especifica se a cadeia de herança desse tipo deve ser pesquisada para localizar os atributos.

inherit
Boolean

Uma matriz de atributos personalizados identificados por tipo.

Retornos

true se um atributo personalizado identificado por attributeType é definido; caso contrário, false.

Exceções

attributeType é null.

O tipo de atributo personalizado não pode ser carregado.

Aplica-se a