PageBase 클래스

정의

Razor 페이지의 기본 클래스입니다.

public ref class PageBase abstract : Microsoft::AspNetCore::Mvc::Razor::RazorPageBase
public abstract class PageBase : Microsoft.AspNetCore.Mvc.Razor.RazorPageBase
type PageBase = class
    inherit RazorPageBase
Public MustInherit Class PageBase
Inherits RazorPageBase
상속
파생

생성자

PageBase()

Razor 페이지의 기본 클래스입니다.

속성

BodyContent

본문 콘텐츠를 가져오거나 설정합니다.

(다음에서 상속됨 RazorPageBase)
DiagnosticSource

페이지 실행을 계측하는 DiagnosticSource 데 사용되는 instance 가져오거나 설정합니다.

(다음에서 상속됨 RazorPageBase)
HtmlEncoder

HtmlEncoder C# 이외의 식을 처리할 때 RazorPage 사용할 를IHtmlContent 가져옵니다.

(다음에서 상속됨 RazorPageBase)
HttpContext

HttpContext를 가져옵니다.

IsLayoutBeingRendered

이 페이지의 레이아웃이 렌더링되는지 여부를 결정하는 플래그를 가져오거나 설정합니다.

(다음에서 상속됨 RazorPageBase)
Layout

레이아웃 페이지의 경로를 가져오거나 설정합니다.

(다음에서 상속됨 RazorPageBase)
MetadataProvider

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

ModelState

ModelStateDictionary를 가져옵니다.

Output

TextWriter 페이지에서 출력을 작성하는 을 가져옵니다.

(다음에서 상속됨 RazorPageBase)
PageContext

PageContext

Path

페이지의 애플리케이션 기반 상대 경로를 가져옵니다.

(다음에서 상속됨 RazorPageBase)
PreviousSectionWriters

이 페이지에서 렌더링할 수 있는 섹션을 가져오거나 설정합니다.

(다음에서 상속됨 RazorPageBase)
Request

HttpRequest를 가져옵니다.

Response

HttpResponse를 가져옵니다.

RouteData

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

SectionWriters

이 페이지에서 정의한 섹션을 가져옵니다.

(다음에서 상속됨 RazorPageBase)
TempData

ITempDataDictionary 에서 을 ViewContext가져옵니다.

(다음에서 상속됨 RazorPageBase)
User

ClaimsPrincipal 현재 로그인한 사용자의 을 가져옵니다.

(다음에서 상속됨 RazorPageBase)
ViewBag

동적 뷰 데이터 사전을 가져옵니다.

(다음에서 상속됨 RazorPageBase)
ViewContext

렌더링 뷰의 보기 컨텍스트를 가져오거나 설정합니다.

메서드

AddHtmlAttributeValue(String, Int32, Object, Int32, Int32, Boolean)

html 특성 값을 추가합니다.

(다음에서 상속됨 RazorPageBase)
BadRequest()

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

BadRequest(ModelStateDictionary)

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

BadRequest(Object)

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

BeginAddHtmlAttributeValues(TagHelperExecutionContext, String, Int32, HtmlAttributeValueStyle)

html 특성 값을 추가하기 시작합니다.

(다음에서 상속됨 RazorPageBase)
BeginContext(Int32, Int32, Boolean)

Razor 페이지의 기본 클래스입니다.

BeginWriteAttribute(String, String, Int32, String, Int32, Int32)

특성 작성을 시작합니다.

(다음에서 상속됨 RazorPageBase)
BeginWriteTagHelperAttribute()

특성 값을 작성 ITagHelper 하기 위한 새 scope 시작합니다.

(다음에서 상속됨 RazorPageBase)
Challenge()

ChallengeResult을 만듭니다.

Challenge(AuthenticationProperties)

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

Challenge(AuthenticationProperties, String[])

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

Challenge(String[])

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

Content(String)

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

Content(String, MediaTypeHeaderValue)

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

Content(String, String)

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

Content(String, String, Encoding)

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

CreateTagHelper<TTagHelper>()

를 만들고 활성화합니다 ITagHelper.

(다음에서 상속됨 RazorPageBase)
DefineSection(String, Func<Object,Task>)

또는 을 사용하여 RenderSection 레이아웃 페이지에서 호출할 수 있는 명명된 콘텐츠 섹션을 페이지에 만듭니다. RenderSectionAsync

(다음에서 상속됨 RazorPageBase)
DefineSection(String, RenderAsyncDelegate)

또는 을 사용하여 RenderSection 레이아웃 페이지에서 호출할 수 있는 명명된 콘텐츠 섹션을 페이지에 만듭니다. RenderSectionAsync

(다음에서 상속됨 RazorPageBase)
EndAddHtmlAttributeValues(TagHelperExecutionContext)

html 특성 값 추가를 종료합니다.

(다음에서 상속됨 RazorPageBase)
EndContext()

Razor 페이지의 기본 클래스입니다.

EndTagHelperWritingScope()

를 호출StartTagHelperWritingScope(HtmlEncoder)하여 시작된 현재 쓰기 scope 종료합니다.

(다음에서 상속됨 RazorPageBase)
EndWriteAttribute()

특성 작성을 종료합니다.

(다음에서 상속됨 RazorPageBase)
EndWriteTagHelperAttribute()

를 호출BeginWriteTagHelperAttribute()하여 시작된 현재 쓰기 scope 종료합니다.

(다음에서 상속됨 RazorPageBase)
EnsureRenderedBodyOrSections()

PreviousSectionWriters 정의된 모든 섹션이 렌더링되었는지 또는 섹션이 정의되지 않은 경우 본문이 렌더링되었는지 확인합니다.

ExecuteAsync()

페이지를 렌더링하고 출력 Writer을 에 씁니다.

(다음에서 상속됨 RazorPageBase)
File(Byte[], String)

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

File(Byte[], String, String)

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

File(Stream, String)

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

File(Stream, String, String)

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

File(String, String)

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

File(String, String, String)

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

FlushAsync()

FlushAsync() 응답 스트림에서 및 Stream.FlushAsyncOutput 호출하여 버퍼링된 콘텐츠를 Body에 기록합니다.

(다음에서 상속됨 RazorPageBase)
Forbid()

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

Forbid(AuthenticationProperties)

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

Forbid(AuthenticationProperties, String[])

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

Forbid(String[])

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

Href(String)

지정된 콘텐츠 경로에 대한 href를 반환합니다.

(다음에서 상속됨 RazorPageBase)
InvalidTagHelperIndexerAssignment(String, String, String)

태그 도우미 속성이 일 때 인덱서 사용에 대한 오류 메시지 서식을 지정합니다 null.

(다음에서 상속됨 RazorPageBase)
LocalRedirect(String)

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

LocalRedirectPermanent(String)

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

LocalRedirectPermanentPreserveMethod(String)

true PreserveMethodLocalRedirectResultPermanent 설정된 개체를 만들고 지정된 localUrl를 사용하여 true(Status308PermanentRedirect)로 설정합니다.

LocalRedirectPreserveMethod(String)

false로 Permanent 설정된 개체를 LocalRedirectResultPreserveMethod 만들고 지정된 localUrl를 사용하여 true(Status307TemporaryRedirect)로 설정합니다.

NotFound()

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

NotFound(Object)

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

Page()

PageResult 이 페이지를 응답에 대한 보기로 렌더링하는 개체를 만듭니다.

Partial(String)

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

Partial(String, Object)

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

PhysicalFile(String, String)

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

PhysicalFile(String, String, String)

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

PopWriter()

스택에서 텍스트 기록기를 반환합니다.

(다음에서 상속됨 RazorPageBase)
PushWriter(TextWriter)

텍스트 기록기를 스택에 배치합니다.

(다음에서 상속됨 RazorPageBase)
Redirect(String)

지정된 urlRedirectResult 리디렉션되는 개체를 만듭니다.

RedirectPermanent(String)

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

RedirectPermanentPreserveMethod(String)

true PreserveMethodRedirectResultPermanent 설정된 개체를 만들고 지정된 url를 사용하여 true(Status308PermanentRedirect)로 설정합니다.

RedirectPreserveMethod(String)

false로 Permanent 설정된 개체를 RedirectResultPreserveMethod 만들고 지정된 url를 사용하여 true(Status307TemporaryRedirect)로 설정합니다.

RedirectToAction(String)

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

RedirectToAction(String, Object)

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

RedirectToAction(String, String)

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

RedirectToAction(String, String, Object)

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

RedirectToAction(String, String, Object, String)

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

RedirectToAction(String, String, String)

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

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)

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

RedirectToActionPermanent(String, String, String)

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

RedirectToActionPermanentPreserveMethod(String, String, Object, String)

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

RedirectToActionPreserveMethod(String, String, Object, String)

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

RedirectToPage()

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

RedirectToPage(Object)

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

RedirectToPage(String)

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

RedirectToPage(String, Object)

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

RedirectToPage(String, String)

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

RedirectToPage(String, String, Object, String)

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

RedirectToPage(String, String, String)

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

RedirectToPagePermanent(String)

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

RedirectToPagePermanent(String, Object)

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

RedirectToPagePermanent(String, String)

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

RedirectToPagePermanent(String, String, Object)

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

RedirectToPagePermanent(String, String, Object, String)

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

RedirectToPagePermanent(String, String, String)

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

RedirectToPagePermanentPreserveMethod(String, String, Object, String)

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

RedirectToPagePreserveMethod(String, String, Object, String)

지정된 , routeValuesfragment를 사용하여 pageNamefalse로 설정된 지정된 페이지로 Permanent 리디렉션Status307TemporaryRedirect하고 PreserveMethod true로 설정합니다.

RedirectToRoute(Object)

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

RedirectToRoute(String)

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

RedirectToRoute(String, Object)

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

RedirectToRoute(String, Object, String)

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

RedirectToRoute(String, String)

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

RedirectToRoutePermanent(Object)

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

RedirectToRoutePermanent(String)

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

RedirectToRoutePermanent(String, Object)

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

RedirectToRoutePermanent(String, Object, String)

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

RedirectToRoutePermanent(String, String)

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

RedirectToRoutePermanentPreserveMethod(String, Object, String)

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

RedirectToRoutePreserveMethod(String, Object, String)

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

SetAntiforgeryCookieAndHeader()

응답에서 위조 방지 쿠키 및 X-Frame-Options 헤더를 설정합니다.

(다음에서 상속됨 RazorPageBase)
SignIn(ClaimsPrincipal, AuthenticationProperties, String)

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

SignIn(ClaimsPrincipal, String)

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

SignOut(AuthenticationProperties, String[])

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

SignOut(String[])

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

StartTagHelperWritingScope(HtmlEncoder)

새 쓰기 scope 시작하고 필요에 따라 해당 scope 내에서 재정의합니다HtmlEncoder.

(다음에서 상속됨 RazorPageBase)
StatusCode(Int32)

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

StatusCode(Int32, Object)

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

TryUpdateModelAsync(Object, Type, String)

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

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

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

TryUpdateModelAsync<TModel>(TModel)

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

TryUpdateModelAsync<TModel>(TModel, String)

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

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

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

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

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

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider)

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

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

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

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

prefix를 사용하여 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 를 만듭니다.

Write(Object)

HTML 인코딩으로 지정된 를 valueOutput씁니다.

(다음에서 상속됨 RazorPageBase)
Write(String)

HTML 인코딩으로 지정된 를 valueOutput씁니다.

(다음에서 상속됨 RazorPageBase)
WriteAttributeValue(String, Int32, Object, Int32, Int32, Boolean)

특성 값을 씁니다.

(다음에서 상속됨 RazorPageBase)
WriteLiteral(Object)

HTML 인코딩 없이 지정된 를 valueOutput씁니다.

(다음에서 상속됨 RazorPageBase)
WriteLiteral(String)

HTML 인코딩 없이 지정된 를 valueOutput씁니다.

(다음에서 상속됨 RazorPageBase)

적용 대상