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

속성 값

설명

짧은 이름은 기본적으로 뷰 구성 요소 클래스의 이름으로 설정됩니다. 뷰 구성 요소 클래스가 접미사로 를 사용하는 ViewComponent 경우 접미사는 에서 ShortName생략됩니다.

클래스 이름: Contoso.Products.LoginViewComponent 뷰 구성 요소 ShortName: 로그인
클래스 이름: Contoso.Blog.Tags 뷰 구성 요소 ShortName: 태그

를 사용하여 이름을 설정하는 경우 Name 값의 마지막 세그먼트('.'를 별도로 사용)가 로 ShortName사용됩니다.

[ViewComponent(Name = "Contoso.Forum.UsersOnline")] public class OnlineUsersViewComponent { } View Component ShortName: UsersOnline

적용 대상