ViewComponentConventions Třída

Definice

Statická třída, která přidává standardní metody konvence komponent zobrazení. Tuto třídu nelze zdědit.

public ref class ViewComponentConventions abstract sealed
public static class ViewComponentConventions
type ViewComponentConventions = class
Public Class ViewComponentConventions
Dědičnost
ViewComponentConventions

Pole

ViewComponentSuffix

Přípona názvu součásti zobrazení.

Metody

GetComponentFullName(TypeInfo)

Získejte úplný název komponenty z prvního typu Name . Pokud není definován, úplný název je obor názvů s příponou Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentConventions.GetShortNameByConvention(System.Reflection.TypeInfo).

GetComponentName(TypeInfo)

Získá název komponenty.

IsComponent(TypeInfo)

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.

Platí pro