TypeDelegator.IsDefined(Type, Boolean) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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.