ViewComponentConventions.IsComponent(TypeInfo) Metoda

Definice

Vrátí true , pokud typ je veřejná, ne abstraktní, ne generická třída, která definuje ViewComponentAttribute, ale ne NonViewComponentAttribute a má název, který končí v 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

Kontrola TypeInfo .

Návraty

Boolean

Pokud je typ komponentou.

Platí pro