JSFieldInfo.IsDefined(Type, Boolean) Metod

Definition

Avgör om den angivna attributtypen är kopplad till det här fältet.

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 bool IsDefined(Type type, bool inherit);
override this.IsDefined : Type * bool -> bool
Public Overrides 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

false i samtliga fall.

Gäller för

Se även