ViewComponentConventions 클래스

정의

표준 뷰 구성 요소 규칙 메서드를 추가하는 정적 클래스입니다. 이 클래스는 상속될 수 없습니다.

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)

형식이 를 정의하는 ViewComponentAttributepublic, non abstract, non generic 클래스인 경우 를 반환 true 하지만, 및 에 ViewComponent로 끝나는 이름이 없는 NonViewComponentAttribute 경우 를 반환합니다.

적용 대상