Aracılığıyla paylaş


ViewComponentConventions Sınıf

Tanım

Standart görünüm bileşen kuralı yöntemleri ekleyen statik sınıf. Bu sınıf devralınamaz.

public ref class ViewComponentConventions abstract sealed
public static class ViewComponentConventions
type ViewComponentConventions = class
Public Class ViewComponentConventions
Devralma
ViewComponentConventions

Alanlar

ViewComponentSuffix

Görünüm bileşeni adının son eki.

Yöntemler

GetComponentFullName(TypeInfo)

Bileşenin tam adını ilkinden bir türe alın Name . Tanımlanmamışsa, tam ad ile Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentConventions.GetShortNameByConvention(System.Reflection.TypeInfo)Ad Alanı olur.

GetComponentName(TypeInfo)

Bir bileşenin adını alır.

IsComponent(TypeInfo)

Tür genel, soyut olmayan, öğesini tanımlayan genel olmayan bir sınıfsa, ancak öğesini tanımlayıp ViewComponentAttributeviewcomponent ile biten bir ada sahip değilse NonViewComponentAttribute döndürürtrue.

Şunlara uygulanır