PageModel 클래스

정의

Page를 나타내는 추상 클래스

public ref class PageModel abstract
public ref class PageModel abstract : Microsoft::AspNetCore::Mvc::Filters::IAsyncPageFilter, Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata, Microsoft::AspNetCore::Mvc::Filters::IPageFilter
[Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageModel]
public abstract class PageModel
[Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageModel]
public abstract class PageModel : Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IPageFilter
[<Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageModel>]
type PageModel = class
[<Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageModel>]
type PageModel = class
    interface IAsyncPageFilter
    interface IFilterMetadata
    interface IPageFilter
Public MustInherit Class PageModel
Public MustInherit Class PageModel
Implements IAsyncPageFilter, IFilterMetadata, IPageFilter
상속
PageModel
파생
특성
구현

생성자

PageModel()

Page를 나타내는 추상 클래스

속성

HttpContext

HttpContext를 가져옵니다.

MetadataProvider

IModelMetadataProvider를 가져오거나 설정합니다.

ModelState

ModelStateDictionary를 가져옵니다.

PageContext

PageContext를 가져옵니다.

Request

HttpRequest를 가져옵니다.

Response

HttpResponse를 가져옵니다.

RouteData

RouteData 실행 중인 작업에 대한 을 가져옵니다.

TempData

에서 사용하는 집합을 PageResult가져오거나 설정합니다ITempDataDictionary.

Url

IUrlHelper를 가져오거나 설정합니다.

User

ClaimsPrincipal 실행 작업과 연결된 사용자의 를 가져옵니다.

ViewData

ViewDataDictionary를 가져옵니다.

메서드

BadRequest()

BadRequestResult 응답을 생성하는 을 Status400BadRequest 만듭니다.

BadRequest(ModelStateDictionary)

BadRequestObjectResult 응답을 생성하는 을 Status400BadRequest 만듭니다.

BadRequest(Object)

BadRequestObjectResult 응답을 생성하는 을 Status400BadRequest 만듭니다.

Challenge()

ChallengeResult을 만듭니다.

Challenge(AuthenticationProperties)

지정된 를 사용하여 ChallengeResultproperties만듭니다.

Challenge(AuthenticationProperties, String[])

ChallengeResult 지정된 인증 체계 및 를 사용하여 을 만듭니다properties.

Challenge(String[])

ChallengeResult 지정된 인증 체계를 사용하여 을 만듭니다.

Content(String)

문자열을 ContentResult 지정하여 를 Status200OK 사용하여 개체를 content 만듭니다.

Content(String, MediaTypeHeaderValue)

문자열과 를 ContentResult 지정하여 를 사용하여 개체 Status200OKcontentcontentType만듭니다.

Content(String, String)

ContentResult 문자열 및 콘텐츠 형식을 지정하여 를 사용하여 content 개체 Status200OK 를 만듭니다.

Content(String, String, Encoding)

문자열, ContentResultcontentEncoding를 지정하여 content 를 사용하여 개체 Status200OKcontentType만듭니다.

File(Byte[], String)

가 콘텐츠(Status200OK)로 지정되고 fileContents 가 Content-Type으로 지정된 contentType 파일을 반환합니다.

File(Byte[], String, String)

가 콘텐츠(Status200OK)로 지정되고 fileContents 가 Content-Type으로 지정되고 contentType 가 제안된 파일 이름으로 지정된 fileDownloadName 파일을 반환합니다.

File(Stream, String)

가 Content-Type으로 contentType 지정된 fileStreamStatus200OK 파일을 반환합니다.

File(Stream, String, String)

가 Content-Type으로 지정되고 이 fileStream 제안된 파일 이름으로 지정된 contentTypefileDownloadName 가 있는 지정된 (Status200OK)의 파일을 반환합니다.

File(String, String)

가 Content-Type으로 지정된 virtualPath (Status200OK)로 지정된 contentType 파일을 반환합니다.

File(String, String, String)

가 Content-Type으로 지정 virtualPathcontentType 되고 이 제안된 파일 이름으로 지정된 (Status200OK)로 지정된 fileDownloadName 파일을 반환합니다.

Forbid()

(Status403Forbidden기본적으로)을 ForbidResult 만듭니다.

Forbid(AuthenticationProperties)

지정된 를 사용하여 ForbidResult (Status403Forbidden 기본적으로)를 properties만듭니다.

Forbid(AuthenticationProperties, String[])

ForbidResult 지정된 인증 체계 및 properties를 사용하여 (Status403Forbidden기본적으로)를 만듭니다.

Forbid(String[])

지정된 인증 체계를 사용하여 ForbidResult (Status403Forbidden 기본적으로)를 만듭니다.

LocalRedirect(String)

(Status302Found)를 LocalRedirectResult 지정된 로컬 localUrl로 리디렉션하는 개체를 만듭니다.

LocalRedirectPermanent(String)

지정된 를 LocalRedirectResult 사용하여 true(Status301MovedPermanently)로 Permanent 설정된 개체를 localUrl만듭니다.

LocalRedirectPermanentPreserveMethod(String)

를 true로 Permanent 설정하고 지정된 를 LocalRedirectResult 사용하여 truePreserveMethod(Status308PermanentRedirect)로 설정된 개체를 localUrl만듭니다.

LocalRedirectPreserveMethod(String)

지정된 를 LocalRedirectResult 사용하여 false PreserveMethodPermanent 설정하고 true(Status307TemporaryRedirect)로 설정된 개체를 localUrl만듭니다.

NotFound()

NotFoundResult 응답을 생성하는 을 Status404NotFound 만듭니다.

NotFound(Object)

NotFoundObjectResult 응답을 생성하는 을 Status404NotFound 만듭니다.

OnPageHandlerExecuted(PageHandlerExecutedContext)

처리기 메서드가 실행된 후 작업 결과가 실행되기 전에 호출됩니다.

OnPageHandlerExecuting(PageHandlerExecutingContext)

모델 바인딩이 완료된 후 처리기 메서드가 실행되기 전에 호출됩니다.

OnPageHandlerExecutionAsync(PageHandlerExecutingContext, PageHandlerExecutionDelegate)

모델 바인딩이 완료된 후 처리기 메서드가 호출되기 전에 비동기적으로 호출됩니다.

OnPageHandlerSelected(PageHandlerSelectedContext)

처리기 메서드를 선택한 후 모델 바인딩이 발생하기 전에 호출됩니다.

OnPageHandlerSelectionAsync(PageHandlerSelectedContext)

처리기 메서드를 선택한 후 모델 바인딩이 발생하기 전에 비동기적으로 호출됩니다.

Page()

PageResult 페이지를 렌더링하는 개체를 만듭니다.

Partial(String)

PartialViewResult 렌더링할 부분의 이름을 지정하여 을 만듭니다.

Partial(String, Object)

PartialViewResult 렌더링할 부분 및 모델 개체의 이름을 지정하여 을 만듭니다.

PhysicalFile(String, String)

가 Content-Type으로 지정된 physicalPath (Status200OK)로 지정된 contentType 파일을 반환합니다.

PhysicalFile(String, String, String)

가 Content-Type으로 지정 physicalPathcontentType 되고 이 제안된 파일 이름으로 지정된 (Status200OK)로 지정된 fileDownloadName 파일을 반환합니다.

Redirect(String)

지정된 urlRedirectResult 리디렉션(Status302Found)하는 개체를 만듭니다.

RedirectPermanent(String)

지정된 를 RedirectResult 사용하여 true(Status301MovedPermanently)로 Permanent 설정된 개체를 url만듭니다.

RedirectPermanentPreserveMethod(String)

를 true로 Permanent 설정하고 지정된 를 RedirectResult 사용하여 truePreserveMethod(Status308PermanentRedirect)로 설정된 개체를 url만듭니다.

RedirectPreserveMethod(String)

지정된 를 RedirectResult 사용하여 false PreserveMethodPermanent 설정하고 true(Status307TemporaryRedirect)로 설정된 개체를 url만듭니다.

RedirectToAction(String)

를 사용하여 지정된 작업으로 (Status302Found)를 리디렉션합니다 actionName.

RedirectToAction(String, Object)

routeValues를 사용하여 지정된 작업으로 (Status302Found)를 리디렉션합니다actionName.

RedirectToAction(String, String)

및 를 사용하여 지정된 작업으로 (Status302Found)를 actionName 리디렉션합니다 controllerName.

RedirectToAction(String, String, Object)

지정된 , controllerNamerouteValues를 사용하여 지정된 작업으로 (Status302Found)를 actionName리디렉션합니다.

RedirectToAction(String, String, Object, String)

지정된 , , routeValuescontrollerNamefragment를 사용하여 지정된 작업으로 (Status302Found)를 actionName리디렉션합니다.

RedirectToAction(String, String, String)

지정된 , controllerNamefragment를 사용하여 지정된 작업으로 (Status302Found)를 actionName리디렉션합니다.

RedirectToActionPermanent(String)

지정된 를 사용하여 actionName(Status301MovedPermanently)를 true로 설정된 지정된 작업으로 Permanent 리디렉션합니다.

RedirectToActionPermanent(String, Object)

지정된 및 routeValues를 사용하여 true로 설정된 지정된 작업으로 Permanent 리디렉션(Status301MovedPermanently)합니다actionName.

RedirectToActionPermanent(String, String)

지정된 및 controllerName를 사용하여 true로 설정된 지정된 작업으로 Permanent 리디렉션(Status301MovedPermanently)합니다actionName.

RedirectToActionPermanent(String, String, Object)

지정된 , controllerNamerouteValues를 사용하여 actionNametrue로 설정된 지정된 작업으로 Permanent 리디렉션(Status301MovedPermanently)합니다.

RedirectToActionPermanent(String, String, Object, String)

지정된 , , 및 fragment를 사용하여 actionNametrue로 설정된 지정된 작업으로 Permanent 리디렉션(Status301MovedPermanently)routeValues합니다. controllerName

RedirectToActionPermanent(String, String, String)

지정된 , controllerNamefragment를 사용하여 actionNametrue로 설정된 지정된 작업으로 Permanent 리디렉션(Status301MovedPermanently)합니다.

RedirectToActionPermanentPreserveMethod(String, String, Object, String)

지정된 , , 및 를 사용하여 true로 설정된 지정된 작업으로 Permanent 리디렉션Status308PermanentRedirect하고 PreserveMethod true로 actionName설정합니다.fragmentrouteValuescontrollerName

RedirectToActionPreserveMethod(String, String, Object, String)

지정된 , , 및 를 사용하여 false로 설정된 지정된 작업으로 Permanent 리디렉션Status307TemporaryRedirect하고 PreserveMethod true로 actionName설정합니다.fragmentrouteValuescontrollerName

RedirectToPage()

(Status302Found)를 현재 페이지로 리디렉션합니다.

RedirectToPage(Object)

지정된 routeValues를 사용하여 (Status302Found)을 현재 페이지로 리디렉션합니다.

RedirectToPage(String)

(Status302Found)를 지정된 pageName로 리디렉션합니다.

RedirectToPage(String, Object)

지정된 를 사용하여 지정된 로 리디렉션(Status302Found)합니다routeValues.pageName

RedirectToPage(String, String)

지정된 를 사용하여 지정된 로 리디렉션(Status302Found)합니다pageHandler.pageName

RedirectToPage(String, String, Object)

지정된 및 routeValues를 사용하여 지정된 로 pageName 리디렉션(Status302Found)합니다pageHandler.

RedirectToPage(String, String, Object, String)

지정된 및 fragment를 사용하여 지정된 로 pageName 리디렉션(Status302Found)합니다routeValues.

RedirectToPage(String, String, String)

지정된 를 사용하여 지정된 로 리디렉션(Status302Found)합니다fragment.pageName

RedirectToPagePermanent(String)

(Status301MovedPermanently)를 지정된 pageName로 리디렉션합니다.

RedirectToPagePermanent(String, Object)

지정된 를 사용하여 지정된 로 리디렉션(Status301MovedPermanently)합니다routeValues.pageName

RedirectToPagePermanent(String, Object, String)

지정된 를 사용하여 지정된 로 리디렉션(Status301MovedPermanently)합니다fragment.pageName

RedirectToPagePermanent(String, String)

(Status301MovedPermanently)를 지정된 pageName로 리디렉션합니다.

RedirectToPagePermanent(String, String, Object)

지정된 를 사용하여 지정된 로 리디렉션(Status301MovedPermanently)합니다routeValues.pageName

RedirectToPagePermanent(String, String, Object, String)

지정된 및 fragment를 사용하여 지정된 로 pageName 리디렉션(Status301MovedPermanently)합니다routeValues.

RedirectToPagePermanent(String, String, String)

지정된 를 사용하여 지정된 로 리디렉션(Status301MovedPermanently)합니다fragment.pageName

RedirectToPagePermanentPreserveMethod(String, String, Object, String)

지정된 , routeValuesfragment를 사용하여 true로 설정된 지정된 경로로 Permanent 리디렉션Status308PermanentRedirect하고 PreserveMethod true로 pageName설정합니다.

RedirectToPagePreserveMethod(String, String, Object, String)

지정된 , routeValuesfragment을 사용하여 false로 설정되고 PreserveMethod true로 Permanent 설정된 지정된 페이지로 pageName리디렉션Status307TemporaryRedirect()합니다.

RedirectToRoute(Object)

지정된 를 사용하여 지정된 경로로 리디렉션(Status302Found)합니다 routeValues.

RedirectToRoute(String)

지정된 를 사용하여 지정된 경로로 리디렉션(Status302Found)합니다 routeName.

RedirectToRoute(String, Object)

지정된 및 를 사용하여 지정된 경로로 (Status302Found)를 routeName 리디렉션합니다 routeValues.

RedirectToRoute(String, Object, String)

지정된 , routeValuesfragment를 사용하여 지정된 경로로 (Status302Found)를 routeName리디렉션합니다.

RedirectToRoute(String, String)

지정된 및 를 사용하여 지정된 경로로 (Status302Found)를 routeName 리디렉션합니다 fragment.

RedirectToRoutePermanent(Object)

지정된 를 사용하여 true로 설정된 지정된 경로로 리디렉션(Status301MovedPermanently)합니다routeValues.Permanent

RedirectToRoutePermanent(String)

지정된 를 사용하여 true로 설정된 지정된 경로로 리디렉션(Status301MovedPermanently)합니다routeName.Permanent

RedirectToRoutePermanent(String, Object)

지정된 및 routeValues를 사용하여 (Status301MovedPermanently)를 true로 Permanent 설정된 지정된 경로로 routeName 리디렉션합니다.

RedirectToRoutePermanent(String, Object, String)

지정된 , 및 을 사용하여 (Status301MovedPermanently)를 true로 Permanent 설정된 지정된 경로로 routeName리디렉션합니다.fragmentrouteValues

RedirectToRoutePermanent(String, String)

지정된 및 fragment를 사용하여 (Status301MovedPermanently)를 true로 Permanent 설정된 지정된 경로로 routeName 리디렉션합니다.

RedirectToRoutePermanentPreserveMethod(String, Object, String)

지정된 , routeValuesfragment를 사용하여 true로 설정된 지정된 경로로 Permanent 리디렉션Status308PermanentRedirect하고 PreserveMethod true로 routeName설정합니다.

RedirectToRoutePreserveMethod(String, Object, String)

지정된 , routeValuesfragment을 사용하여 false로 설정된 지정된 경로로 Permanent 리디렉션Status307TemporaryRedirect하고 PreserveMethod true로 routeName설정합니다.

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

SignInResult 지정된 인증 체계 및 properties를 사용하여 을 만듭니다.

SignIn(ClaimsPrincipal, String)

SignInResult 지정된 인증 체계를 사용하여 을 만듭니다.

SignOut(AuthenticationProperties, String[])

SignOutResult 지정된 인증 체계 및 를 사용하여 을 만듭니다properties.

SignOut(String[])

SignOutResult 지정된 인증 체계를 사용하여 을 만듭니다.

StatusCode(Int32)

StatusCodeResult 지정하여 개체를 만듭니다 statusCode.

StatusCode(Int32, Object)

및 을 ObjectResult 지정하여 개체를 statusCode 만듭니다. value

TryUpdateModelAsync(Object, Type, String)

의 현재 IValueProvidername의 값을 PageModel사용하여 지정된 model instance 업데이트.

TryUpdateModelAsync(Object, Type, String, IValueProvider, Func<ModelMetadata,Boolean>)

name를 사용하여 valueProvider 지정된 model instance 업데이트.

TryUpdateModelAsync<TModel>(TModel)

의 현재 IValueProvider의 값을 PageModel사용하여 지정된 model instance 업데이트.

TryUpdateModelAsync<TModel>(TModel, String)

의 현재 IValueProvider의 값을 PageModel사용하여 지정된 model instance 업데이트.

TryUpdateModelAsync<TModel>(TModel, String, Expression<Func<TModel,Object>>[])

의 현재 IValueProvidername의 값을 PageModel사용하여 지정된 model instance 업데이트.

TryUpdateModelAsync<TModel>(TModel, String, Func<ModelMetadata,Boolean>)

의 현재 IValueProvidername의 값을 PageModel사용하여 지정된 model instance 업데이트.

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider)

name를 사용하여 valueProvider 지정된 model instance 업데이트.

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider, Expression<Func<TModel,Object>>[])

name를 사용하여 valueProvider 지정된 model instance 업데이트.

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider, Func<ModelMetadata,Boolean>)

name를 사용하여 valueProvider 지정된 model instance 업데이트.

TryValidateModel(Object)

지정된 instance 유효성을 model 검사합니다.

TryValidateModel(Object, String)

지정된 instance 유효성을 model 검사합니다.

Unauthorized()

UnauthorizedResult 응답을 생성하는 을 Status401Unauthorized 만듭니다.

ViewComponent(String)

렌더링할 ViewComponentResult 뷰 구성 요소의 이름을 지정하여 을 만듭니다.

ViewComponent(String, Object)

렌더링할 ViewComponentResult 뷰 구성 요소의 이름을 지정하여 을 만듭니다.

ViewComponent(Type)

렌더링할 ViewComponentResult 뷰 구성 요소의 를 지정하여 Type 을 만듭니다.

ViewComponent(Type, Object)

렌더링할 ViewComponentResult 뷰 구성 요소의 를 지정하여 Type 을 만듭니다.

적용 대상