ViewComponent 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
뷰 구성 요소에 대한 기본 클래스입니다.
public ref class ViewComponent abstract
[Microsoft.AspNetCore.Mvc.ViewComponent]
public abstract class ViewComponent
[<Microsoft.AspNetCore.Mvc.ViewComponent>]
type ViewComponent = class
Public MustInherit Class ViewComponent
- 상속
-
ViewComponent
- 특성
생성자
| ViewComponent() |
뷰 구성 요소에 대한 기본 클래스입니다. |
속성
| HttpContext |
HttpContext를 가져옵니다. |
| ModelState |
ModelStateDictionary를 가져옵니다. |
| Request |
HttpRequest를 가져옵니다. |
| RouteData |
현재 요청에 대한 RouteData를 가져옵니다. |
| TempData |
ITempDataDictionary를 가져옵니다. |
| Url |
IUrlHelper를 가져오거나 설정합니다. |
| User |
IPrincipal 현재 사용자의 를 가져옵니다. |
| UserClaimsPrincipal |
ClaimsPrincipal 현재 사용자의 를 가져옵니다. |
| ViewBag |
뷰 모음을 가져옵니다. |
| ViewComponentContext |
ViewComponentContext를 가져오거나 설정합니다. |
| ViewContext |
ViewContext를 가져옵니다. |
| ViewData |
ViewDataDictionary를 가져옵니다. |
| ViewEngine |
ICompositeViewEngine를 가져오거나 설정합니다. |
메서드
| Content(String) |
HTML로 인코딩된 텍스트를 렌더링하는 결과를 반환합니다. |
| View() |
이름이 |
| View(String) |
이름이 |
| View<TModel>(String, TModel) |
이름이 |
| View<TModel>(TModel) |
이름이 |