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)

指定した を ChallengeResult 使用して を作成します properties

Challenge(AuthenticationProperties, String[])

ChallengeResult指定した認証スキームと propertiesを使用して を作成します。

Challenge(String[])

ChallengeResult指定した認証スキームを使用して を作成します。

Content(String)

文字列を ContentResult 指定して、 を使用 Status200OK して オブジェクトを content 作成します。

Content(String, MediaTypeHeaderValue)

文字列と をContentResult指定contentして、 を使用して オブジェクトをcontentType作成しますStatus200OK

Content(String, String)

ContentResult文字列とコンテンツ タイプを指定して、 content で オブジェクトStatus200OKを作成します。

Content(String, String, Encoding)

文字列、、ContentResultおよび をcontent指定して、 を使用して オブジェクトStatus200OKcontentType作成しますcontentEncoding

File(Byte[], String)

指定した をコンテンツ (Status200OK) として、指定した fileContents を Content-Type として持つファイルを返しますcontentType

File(Byte[], String, String)

指定した をコンテンツ (Status200OK) として、指定した fileContents を Content-Type として、指定した contentType を推奨されるファイル名として返fileDownloadNameします。

File(Stream, String)

指定した fileStream (Status200OK) 内の ファイルを Content-Type として指定して返します contentType

File(Stream, String, String)

指定した fileStream (Status200OK) 内のファイルを Content-Type として指定し、指定 contentType した fileDownloadName を推奨されるファイル名として返します。

File(String, String)

() でvirtualPath指定され、 が Content-Type として指定されたファイルを返しますcontentTypeStatus200OK

File(String, String, String)

() でvirtualPath指定されたファイルを Content-Type として指定し、指定contentTypeした fileDownloadName を推奨されるファイル名として返Status200OKします。

Forbid()

ForbidResult (Status403Forbidden 既定で) を作成します。

Forbid(AuthenticationProperties)

指定した を使用 ForbidResult して (Status403Forbidden 既定で) を作成します properties

Forbid(AuthenticationProperties, String[])

ForbidResult 指定した認証スキームと propertiesを使用して (Status403Forbidden 既定で) を作成します。

Forbid(String[])

指定した認証スキームを ForbidResult 使用して (Status403Forbidden 既定で) を作成します。

LocalRedirect(String)

指定したLocalRedirectResultローカル localUrlに (Status302Found) をリダイレクトする オブジェクトを作成します。

LocalRedirectPermanent(String)

指定した をLocalRedirectResult使用して、true (Status301MovedPermanently) に設定された オブジェクトを作成しますPermanentlocalUrl

LocalRedirectPermanentPreserveMethod(String)

LocalRedirectResult true に設定された オブジェクトをPermanent作成し、PreserveMethod指定した を使用して true (Status308PermanentRedirect) に設定しますlocalUrl

LocalRedirectPreserveMethod(String)

LocalRedirectResult false に設定された オブジェクトをPermanent作成し、PreserveMethod指定した を使用して 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 として指定した (Status200OK) でphysicalPath指定したcontentTypeファイルを返します。

PhysicalFile(String, String, String)

指定した を Content-Type として指定し、指定した contentType を推奨されるファイル名として使用して、(Status200OK) でphysicalPath指定されたfileDownloadNameファイルを返します。

Redirect(String)

() を RedirectResult 指定した にリダイレクトStatus302Foundする オブジェクトを作成します url

RedirectPermanent(String)

指定した をRedirectResult使用して、true (Status301MovedPermanently) に設定された オブジェクトを作成しますPermanenturl

RedirectPermanentPreserveMethod(String)

true に設定され、RedirectResultPreserveMethod指定した urlを使用して true (Status308PermanentRedirect) に設定された オブジェクトPermanentを作成します。

RedirectPreserveMethod(String)

指定した urlRedirectResult使用して、 を false に設定し、PreserveMethodtrue (Status307TemporaryRedirect) に設定した オブジェクトPermanentを作成します。

RedirectToAction(String)

を使用して、指定したアクションに (Status302Found) をリダイレクトします actionName

RedirectToAction(String, Object)

routeValuesを使用して、指定したアクションに (Status302Found) をactionNameリダイレクトします。

RedirectToAction(String, String)

と を使用してactionName、指定したアクションに (Status302Found) をリダイレクトしますcontrollerName

RedirectToAction(String, String, Object)

指定した 、controllerName、および を使用して、指定したactionNameアクションに (Status302Found) をリダイレクトしますrouteValues

RedirectToAction(String, String, Object, String)

指定した 、および を使用して、指定したrouteValuesactionNamecontrollerNameアクションに (Status302Found) をリダイレクトします。fragment

RedirectToAction(String, String, String)

指定した 、controllerName、および を使用して、指定したactionNameアクションに (Status302Found) をリダイレクトしますfragment

RedirectToActionPermanent(String)

指定した を使用して、 を true に設定して、指定したアクションに (Status301MovedPermanently) をリダイレクトしますactionNamePermanent

RedirectToActionPermanent(String, Object)

指定した と routeValuesを使用して、 を true に設定して、指定したactionNameアクションPermanentに (Status301MovedPermanently) をリダイレクトします。

RedirectToActionPermanent(String, String)

指定した と controllerNameを使用して、 を true に設定して、指定したactionNameアクションPermanentに (Status301MovedPermanently) をリダイレクトします。

RedirectToActionPermanent(String, String, Object)

指定した 、、および routeValuesを使用して、 を true に設定して、指定したactionNamecontrollerNameアクションPermanentに (Status301MovedPermanently) をリダイレクトします。

RedirectToActionPermanent(String, String, Object, String)

指定した 、および fragmentを使用して、 を true に設定して、指定したcontrollerNameactionNamerouteValuesアクションPermanentに (Status301MovedPermanently) をリダイレクトします。

RedirectToActionPermanent(String, String, String)

指定した 、、および fragmentを使用して、 を true に設定して、指定したactionNamecontrollerNameアクションPermanentに (Status301MovedPermanently) をリダイレクトします。

RedirectToActionPermanentPreserveMethod(String, String, Object, String)

Status308PermanentRedirect() を true に設定し、指定した 、controllerNamerouteValuesおよび PreserveMethodfragmentを使用して true に設定した指定したactionNameアクションPermanentにリダイレクトします。

RedirectToActionPreserveMethod(String, String, Object, String)

Status307TemporaryRedirect() を false に設定し、指定した 、controllerNamerouteValues、および PreserveMethodfragmentを使用して true に設定した指定したactionNameアクションPermanentにリダイレクトします。

RedirectToPage()

(Status302Found) を現在のページにリダイレクトします。

RedirectToPage(Object)

指定した を使用して、現在のページに (Status302Found) をリダイレクトします routeValues

RedirectToPage(String)

(Status302Found) を指定した にリダイレクトします pageName

RedirectToPage(String, Object)

指定した を使用して、指定した に (Status302Found) をリダイレクトしますrouteValuespageName

RedirectToPage(String, String)

指定した を使用して、指定した に (Status302Found) をリダイレクトしますpageHandlerpageName

RedirectToPage(String, String, Object)

指定した と routeValuesを使用して、指定した pageName に (Status302Found) をリダイレクトしますpageHandler

RedirectToPage(String, String, Object, String)

指定した と fragmentを使用して、指定した pageName に (Status302Found) をリダイレクトしますrouteValues

RedirectToPage(String, String, String)

指定した を使用して、指定した に (Status302Found) をリダイレクトしますfragmentpageName

RedirectToPagePermanent(String)

(Status301MovedPermanently) を指定した にリダイレクトします pageName

RedirectToPagePermanent(String, Object)

指定した を使用して、指定した に (Status301MovedPermanently) をリダイレクトしますrouteValuespageName

RedirectToPagePermanent(String, Object, String)

指定した を使用して、指定した に (Status301MovedPermanently) をリダイレクトしますfragmentpageName

RedirectToPagePermanent(String, String)

(Status301MovedPermanently) を指定した にリダイレクトします pageName

RedirectToPagePermanent(String, String, Object)

指定した を使用して、指定した に (Status301MovedPermanently) をリダイレクトしますrouteValuespageName

RedirectToPagePermanent(String, String, Object, String)

指定した と fragmentを使用して、指定した pageName に (Status301MovedPermanently) をリダイレクトしますrouteValues

RedirectToPagePermanent(String, String, String)

指定した を使用して、指定した に (Status301MovedPermanently) をリダイレクトしますfragmentpageName

RedirectToPagePermanentPreserveMethod(String, String, Object, String)

Status308PermanentRedirect() を true に設定し、指定した 、routeValues、および PreserveMethodfragmentを使用して true に設定した指定したpageNameルートPermanentにリダイレクトします。

RedirectToPagePreserveMethod(String, String, Object, String)

Status307TemporaryRedirect() を false に設定し、指定した 、routeValues、および PreserveMethodfragmentを使用して true に設定して、指定したpageNameページPermanentにリダイレクトします。

RedirectToRoute(Object)

指定した を使用して、指定したルートに (Status302Found) をリダイレクトします routeValues

RedirectToRoute(String)

指定した を使用して、指定したルートに (Status302Found) をリダイレクトします routeName

RedirectToRoute(String, Object)

指定した と routeValuesを使用して、指定したルートに (Status302Found) をリダイレクトしますrouteName

RedirectToRoute(String, Object, String)

指定した 、routeValues、および を使用して、指定したrouteNameルートに (Status302Found) をリダイレクトしますfragment

RedirectToRoute(String, String)

指定した と fragmentを使用して、指定したルートに (Status302Found) をリダイレクトしますrouteName

RedirectToRoutePermanent(Object)

指定した を使用して true に設定された指定したルートに (Status301MovedPermanently) をリダイレクトしますrouteValuesPermanent

RedirectToRoutePermanent(String)

指定した を使用して true に設定された指定したルートに (Status301MovedPermanently) をリダイレクトしますrouteNamePermanent

RedirectToRoutePermanent(String, Object)

指定した と routeValuesを使用して、 を true に設定して、指定したルートPermanentに (Status301MovedPermanently) をリダイレクトしますrouteName

RedirectToRoutePermanent(String, Object, String)

Status301MovedPermanently() を指定したルートにリダイレクトし、Permanent指定した 、、routeValuesおよび fragmentを使用して true に設定しますrouteName

RedirectToRoutePermanent(String, String)

指定した と fragmentを使用して、 を true に設定して、指定したルートPermanentに (Status301MovedPermanently) をリダイレクトしますrouteName

RedirectToRoutePermanentPreserveMethod(String, Object, String)

Status308PermanentRedirect() を true に設定し、指定した 、routeValues、および PreserveMethodfragmentを使用して true に設定した指定したrouteNameルートPermanentにリダイレクトします。

RedirectToRoutePreserveMethod(String, Object, String)

Status307TemporaryRedirect() を false に設定し、指定した 、routeValues、および PreserveMethodfragmentを使用して true に設定した指定したrouteNameルートPermanentにリダイレクトします。

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指定して オブジェクトを作成します。statusCodevalue

TryUpdateModelAsync(Object, Type, String)

の現在IValueProviderの と の値PageModelを使用して、指定したmodelインスタンスをname更新します。

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

と を使用して、指定したmodelインスタンスをvalueProvidername更新します。

TryUpdateModelAsync<TModel>(TModel)

の現在IValueProviderの からの値を使用して、指定したmodelインスタンスをPageModel更新します。

TryUpdateModelAsync<TModel>(TModel, String)

の現在IValueProviderの からの値を使用して、指定したmodelインスタンスをPageModel更新します。

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

の現在IValueProviderの と の値PageModelを使用して、指定したmodelインスタンスをname更新します。

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

の現在IValueProviderの と の値PageModelを使用して、指定したmodelインスタンスをname更新します。

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider)

と を使用して、指定したmodelインスタンスをvalueProvidername更新します。

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

と を使用して、指定したmodelインスタンスをvalueProvidername更新します。

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

と を使用して、指定したmodelインスタンスをvalueProvidername更新します。

TryValidateModel(Object)

指定した model インスタンスを検証します。

TryValidateModel(Object, String)

指定した model インスタンスを検証します。

Unauthorized()

応答を UnauthorizedResult 生成する を Status401Unauthorized 作成します。

ViewComponent(String)

レンダリングする ViewComponentResult ビュー コンポーネントの名前を指定して を作成します。

ViewComponent(String, Object)

レンダリングする ViewComponentResult ビュー コンポーネントの名前を指定して を作成します。

ViewComponent(Type)

ViewComponentResultレンダリングするビュー コンポーネントの をType指定して を作成します。

ViewComponent(Type, Object)

ViewComponentResultレンダリングするビュー コンポーネントの をType指定して を作成します。

適用対象