COMPropertyInfo.IsDefined(Type, Boolean) Metoda

Definice

Určuje, zda je zadaný typ atributu připojen k této vlastnosti.

Toto rozhraní API podporuje produktovou infrastrukturu a není určené k použití přímo z uživatelského kódu.

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

Parametry

t
Type

Typ atributu, který chcete vyhledat.

inherit
Boolean

true prohledat hierarchii dědičnosti tohoto členu a najít atributy.

Návraty

Boolean

Hodnota false ve všech případech

Platí pro

Viz také