TypeDelegator.IsDefined(Type, Boolean) Método

Definição

Indica se um atributo personalizado identificado por attributeType está definido.Indicates whether a custom attribute identified by attributeType is defined.

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 é necessário pesquisar a cadeia de herança desse tipo para encontrar os atributos.Specifies whether to search this type's inheritance chain to find the attributes.

inherit
Boolean

Uma matriz de atributos personalizados identificados por tipo.An array of custom attributes identified by type.

Retornos

Boolean

true se um atributo personalizado identificado pelo attributeType estiver definido; caso contrário, false.true if a custom attribute identified by attributeType is defined; otherwise, false.

Exceções

attributeType é null.attributeType is null.

O tipo de atributo personalizado não pode ser carregado.The custom attribute type cannot be loaded.

Aplica-se a