ViewComponentConventions 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
新增標準檢視元件慣例方法的靜態類別。 此類別無法獲得繼承。
public ref class ViewComponentConventions abstract sealed
public static class ViewComponentConventions
type ViewComponentConventions = class
Public Class ViewComponentConventions
- 繼承
-
ViewComponentConventions
欄位
ViewComponentSuffix |
檢視元件名稱的尾碼。 |
方法
GetComponentFullName(TypeInfo) |
從第一個類型 Name 取得元件的完整名稱。 如果未定義,則完整名稱是具有 的 Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentConventions.GetShortNameByConvention(System.Reflection.TypeInfo) 命名空間。 |
GetComponentName(TypeInfo) |
取得元件的名稱。 |
IsComponent(TypeInfo) |
|
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應