JSMethodInfo.IsDefined(Type, Boolean) Metod

Definition

Avgör om den angivna attributtypen är kopplad till den här metoden.

Detta API stöder produktinfrastrukturen och är inte avsett att användas direkt från koden.

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

Parametrar

type
Type

Attributtypen som du vill söka efter.

inherit
Boolean

true om du vill söka i den här medlemmens arvshierarki för att hitta attributen.

Returer

true om en eller flera instanser av det angivna attributet type är kopplade till den här metoden, falseannars .

Gäller för

Se även