TypeDelegator.IsDefined(Type, Boolean) Metod

Definition

Anger om ett anpassat attribut som identifieras av attributeType har definierats.

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

Parametrar

attributeType
Type

Anger om du vill söka i den här typens arvskedja för att hitta attributen.

inherit
Boolean

En matris med anpassade attribut som identifieras efter typ.

Returer

trueom ett anpassat attribut som identifieras av attributeType har definierats, annars . false

Undantag

attributeType är null.

Det går inte att läsa in den anpassade attributtypen.

Gäller för