ViewComponentDescriptor.ShortName 属性

定义

获取或设置短名称。

public:
 property System::String ^ ShortName { System::String ^ get(); void set(System::String ^ value); };
public string ShortName { get; set; }
member this.ShortName : string with get, set
Public Property ShortName As String

属性值

String

注解

短名称默认为视图组件类的名称。 如果视图组件类用作 ViewComponent 后缀,则后缀将从中 ShortName省略。

类名称:Contoso.Products.LoginViewComponent 视图组件 ShortName: Login
类名称:Contoso.Blog.Tags 视图组件 ShortName: Tags

如果 Name 用于设置名称,则使用“.”作为单独的) 将用作 ShortName值的最后一段 (。

[ViewComponent (Name = “Contoso.Forum.UsersOnline”) ] 公共类 OnlineUsersViewComponent { } View Component ShortName: UsersOnline

适用于