Sdílet prostřednictvím


ViewComponentConventions.IsComponent(TypeInfo) Metoda

Definice

Vrátí true , pokud typ je veřejná, ne abstraktní, negenerační třída, která definuje ViewComponentAttribute, ale ne NonViewComponentAttribute a má název, který končí na ViewComponent.

public:
 static bool IsComponent(System::Reflection::TypeInfo ^ typeInfo);
public static bool IsComponent (System.Reflection.TypeInfo typeInfo);
static member IsComponent : System.Reflection.TypeInfo -> bool
Public Shared Function IsComponent (typeInfo As TypeInfo) As Boolean

Parametry

typeInfo
TypeInfo

TypeInfo se zkontrolovat.

Návraty

Pokud je typem komponenta.

Platí pro