Sdílet prostřednictvím


ViewComponentConventions Třída

Definice

Statická třída, která přidává standardní metody konvence komponent zobrazení. Tato třída se nemůže dě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 pro název součásti zobrazení.

Metody

GetComponentFullName(TypeInfo)

Získejte úplný název komponenty z prvního typu Name . Pokud není definovaný, úplný název je obor názvů s 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í, negenerní třída, která definuje ViewComponentAttribute, ale ne NonViewComponentAttribute a má název, který končí na ViewComponent.

Platí pro