ICustomAttributeProvider.IsDefined(Type, Boolean) Metod

Definition

Anger om en eller flera instanser av attributeType har definierats för den här medlemmen.

public:
 bool IsDefined(Type ^ attributeType, bool inherit);
public bool IsDefined(Type attributeType, bool inherit);
abstract member IsDefined : Type * bool -> bool
Public Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean

Parametrar

attributeType
Type

Typen av anpassade attribut.

inherit
Boolean

När trueletar du upp hierarkikedjan för det ärvda anpassade attributet.

Returer

true attributeType om har definierats för den här medlemmen, false annars.

Gäller för