LogoutModel 類別

定義

此 API 支援 ASP.NET Core身分識別預設 UI 基礎結構,並不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

[Microsoft.AspNetCore.Authorization.AllowAnonymous]
public abstract class LogoutModel : Microsoft.AspNetCore.Mvc.RazorPages.PageModel
[<Microsoft.AspNetCore.Authorization.AllowAnonymous>]
type LogoutModel = class
    inherit PageModel
Public MustInherit Class LogoutModel
Inherits PageModel
繼承
LogoutModel
屬性

建構函式

LogoutModel()

此 API 支援 ASP.NET Core身分識別預設 UI 基礎結構,並不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

屬性

HttpContext

取得 HttpContext

(繼承來源 PageModel)
MetadataProvider

取得或設定 IModelMetadataProvider

(繼承來源 PageModel)
ModelState

取得 ModelStateDictionary

(繼承來源 PageModel)
PageContext

取得 PageContext

(繼承來源 PageModel)
Request

取得 HttpRequest

(繼承來源 PageModel)
Response

取得 HttpResponse

(繼承來源 PageModel)
RouteData

RouteData取得執行動作的 。

(繼承來源 PageModel)
TempData

取得或設定 ITempDataDictionary 所使用的 PageResult

(繼承來源 PageModel)
Url

取得或設定 IUrlHelper

(繼承來源 PageModel)
User

取得與 ClaimsPrincipal 執行動作相關聯的使用者。

(繼承來源 PageModel)
ViewData

取得 ViewDataDictionary

(繼承來源 PageModel)

方法

BadRequest()

BadRequestResult建立產生回應的 Status400BadRequest

(繼承來源 PageModel)
BadRequest(ModelStateDictionary)

BadRequestObjectResult建立產生回應的 Status400BadRequest

(繼承來源 PageModel)
BadRequest(Object)

BadRequestObjectResult建立產生回應的 Status400BadRequest

(繼承來源 PageModel)
Challenge()

建立 ChallengeResult

(繼承來源 PageModel)
Challenge(AuthenticationProperties)

使用指定的 properties 建立 ChallengeResult

(繼承來源 PageModel)
Challenge(AuthenticationProperties, String[])

ChallengeResult使用指定的驗證配置和 properties 建立 。

(繼承來源 PageModel)
Challenge(String[])

使用指定的驗證配置建立 ChallengeResult

(繼承來源 PageModel)
Content(String)

ContentResult藉由指定 content 字串來建立 物件 Status200OK

(繼承來源 PageModel)
Content(String, MediaTypeHeaderValue)

ContentResult藉由指定 content 字串和 contentType 來建立 物件 Status200OK

(繼承來源 PageModel)
Content(String, String)

ContentResult藉由指定 content 字串和內容類型來建立 物件 Status200OK

(繼承來源 PageModel)
Content(String, String, Encoding)

ContentResult藉由指定 content 字串、 contentType 、 和 contentEncoding 來建立 物件 Status200OK

(繼承來源 PageModel)
File(Byte[], String)

傳回指定 fileContents 為內容 (Status200OK) 和指定 contentType 為 Content-Type 的檔案。

(繼承來源 PageModel)
File(Byte[], String, String)

傳回指定 fileContents 為內容 () Status200OK 、指定 contentType 為 Content-Type 和指定 fileDownloadName 為建議檔案名的檔案。

(繼承來源 PageModel)
File(Stream, String)

傳回指定 fileStream (Status200OK) 中指定 contentType 為 Content-Type 的檔案。

(繼承來源 PageModel)
File(Stream, String, String)

傳回指定 fileStream 之 (Status200OK) 中的檔案,其 contentType 指定為 Content-Type,以及指定 fileDownloadName 為建議的檔案名。

(繼承來源 PageModel)
File(String, String)

傳回 (virtualPathStatus200OK 所指定的檔案,) 指定 contentType 為 Content-Type。

(繼承來源 PageModel)
File(String, String, String)

傳回指定 virtualPath () Status200OK 指定的檔案,其 contentType 指定為 Content-Type,以及指定 fileDownloadName 為建議的檔案名。

(繼承來源 PageModel)
Forbid()

預設會建立 ForbidResult (Status403Forbidden) 。

(繼承來源 PageModel)
Forbid(AuthenticationProperties)

ForbidResult根據預設,使用指定的 properties 建立 (Status403Forbidden) 。

(繼承來源 PageModel)
Forbid(AuthenticationProperties, String[])

ForbidResult根據預設,使用指定的驗證配置和 properties 建立 (Status403Forbidden) 。

(繼承來源 PageModel)
Forbid(String[])

ForbidResultStatus403Forbidden 根據預設,使用指定的驗證配置建立) (。

(繼承來源 PageModel)
LocalRedirect(String)

建立 LocalRedirectResult 物件,將 (Status302Found) 重新導向至指定的本機 localUrl

(繼承來源 PageModel)
LocalRedirectPermanent(String)

LocalRedirectResult使用指定的 localUrl 建立物件 Permanent ,並將 Status301MovedPermanently 設定為 true () 。

(繼承來源 PageModel)
LocalRedirectPermanentPreserveMethod(String)

LocalRedirectResult使用指定的 localUrl 建立物件, Permanent 並將 設定為 true,並將 PreserveMethod 設定為 true (Status308PermanentRedirect) 。

(繼承來源 PageModel)
LocalRedirectPreserveMethod(String)

LocalRedirectResult使用指定的 localUrl 建立物件, Permanent 並將 設定為 false,並將 PreserveMethod 設定為 true (Status307TemporaryRedirect) 。

(繼承來源 PageModel)
NotFound()

NotFoundResult建立產生回應的 Status404NotFound

(繼承來源 PageModel)
NotFound(Object)

NotFoundObjectResult建立產生回應的 Status404NotFound

(繼承來源 PageModel)
OnGet()

此 API 支援 ASP.NET Core身分識別預設 UI 基礎結構,並不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

OnPageHandlerExecuted(PageHandlerExecutedContext)

在處理常式方法執行之後呼叫,再執行動作結果。

(繼承來源 PageModel)
OnPageHandlerExecuting(PageHandlerExecutingContext)

在處理常式方法執行之前呼叫,在模型系結完成之後。

(繼承來源 PageModel)
OnPageHandlerExecutionAsync(PageHandlerExecutingContext, PageHandlerExecutionDelegate)

在叫用處理程式方法之前,在模型系結完成之後以非同步方式呼叫。

(繼承來源 PageModel)
OnPageHandlerSelected(PageHandlerSelectedContext)

在選取處理常式方法之後呼叫,但在模型系結髮生之前呼叫。

(繼承來源 PageModel)
OnPageHandlerSelectionAsync(PageHandlerSelectedContext)

在選取處理常式方法之後以非同步方式呼叫,但在發生模型系結之前。

(繼承來源 PageModel)
OnPost(String)

此 API 支援 ASP.NET Core身分識別預設 UI 基礎結構,並不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

Page()

建立物件 PageResult 來轉譯頁面。

(繼承來源 PageModel)
Partial(String)

PartialViewResult 由指定要轉譯的部分名稱來建立 。

(繼承來源 PageModel)
Partial(String, Object)

PartialViewResult 由指定要轉譯的部分名稱以及模型物件來建立 。

(繼承來源 PageModel)
PhysicalFile(String, String)

傳回 (physicalPathStatus200OK 所指定的檔案,) 指定 contentType 為 Content-Type。

(繼承來源 PageModel)
PhysicalFile(String, String, String)

傳回指定 physicalPath () Status200OK 指定的檔案,其 contentType 指定為 Content-Type,以及指定 fileDownloadName 為建議的檔案名。

(繼承來源 PageModel)
Redirect(String)

建立 RedirectResult 物件,將 () Status302Found 重新導向至指定的 url

(繼承來源 PageModel)
RedirectPermanent(String)

RedirectResult使用指定的 url 建立物件 Permanent ,並將 Status301MovedPermanently 設定為 true () 。

(繼承來源 PageModel)
RedirectPermanentPreserveMethod(String)

RedirectResult使用指定的 url 建立物件, Permanent 並將 設定為 true,並將 PreserveMethod 設定為 true (Status308PermanentRedirect) 。

(繼承來源 PageModel)
RedirectPreserveMethod(String)

RedirectResult使用指定的 url 建立物件, Permanent 並將 設定為 false,並將 PreserveMethod 設定為 true (Status307TemporaryRedirect) 。

(繼承來源 PageModel)
RedirectToAction(String)

使用 actionName 將 () Status302Found 重新導向至指定的動作。

(繼承來源 PageModel)
RedirectToAction(String, Object)

使用 actionNamerouteValues 將 () Status302Found 重新導向至指定的動作。

(繼承來源 PageModel)
RedirectToAction(String, String)

使用 actionNamecontrollerName ,將 (Status302Found) 重新導向至指定的動作。

(繼承來源 PageModel)
RedirectToAction(String, String, Object)

使用指定的 、 controllerNamerouteValues ,將 (Status302Found) 重新導向至指定的 actionName 動作。

(繼承來源 PageModel)
RedirectToAction(String, String, Object, String)

使用指定的 、 、 和 ,將 (Status302Found) 重新導向至指定的 actionName 動作。 fragmentrouteValuescontrollerName

(繼承來源 PageModel)
RedirectToAction(String, String, String)

使用指定的 、 controllerNamefragment ,將 (Status302Found) 重新導向至指定的 actionName 動作。

(繼承來源 PageModel)
RedirectToActionPermanent(String)

使用指定的 actionName ,將 (Status301MovedPermanently) 重新導向至指定的動作,並將 Permanent 設定為 true。

(繼承來源 PageModel)
RedirectToActionPermanent(String, Object)

使用指定的 和 routeValues ,將 (Status301MovedPermanently) 重新導向至設定為 true 的指定 actionName 動作 Permanent

(繼承來源 PageModel)
RedirectToActionPermanent(String, String)

使用指定的 和 controllerName ,將 (Status301MovedPermanently) 重新導向至設定為 true 的指定 actionName 動作 Permanent

(繼承來源 PageModel)
RedirectToActionPermanent(String, String, Object)

使用指定的 、 controllerNamerouteValues ,將 (Status301MovedPermanently) 重新導向至設定為 true 的指定 actionName 動作 Permanent

(繼承來源 PageModel)
RedirectToActionPermanent(String, String, Object, String)

使用指定的 、 、 和 ,將 (Status301MovedPermanently) 重新導向至指定的動作,並將 fragmentPermanent 設定為 true。 routeValuescontrollerNameactionName

(繼承來源 PageModel)
RedirectToActionPermanent(String, String, String)

使用指定的 、 controllerNamefragment ,將 (Status301MovedPermanently) 重新導向至設定為 true 的指定 actionName 動作 Permanent

(繼承來源 PageModel)
RedirectToActionPermanentPreserveMethod(String, String, Object, String)

使用指定的 、 、 和 ,將 (Status308PermanentRedirect) 重新導向至指定的動作 Permanent ,並將 PreserveMethod 設定為 true。 fragmentrouteValuescontrollerNameactionName

(繼承來源 PageModel)
RedirectToActionPreserveMethod(String, String, Object, String)

使用指定的 、 、 和 ,將 () Status307TemporaryRedirect 重新導向至指定的動作 Permanent ,並將 PreserveMethod 設定為 false 並 fragment 設定為 true。 routeValuescontrollerNameactionName

(繼承來源 PageModel)
RedirectToPage()

將 (Status302Found) 重新導向至目前頁面。

(繼承來源 PageModel)
RedirectToPage(Object)

使用指定的 routeValues ,將 (Status302Found) 重新導向至目前頁面。

(繼承來源 PageModel)
RedirectToPage(String)

將 (Status302Found) 重新導向至指定的 pageName

(繼承來源 PageModel)
RedirectToPage(String, Object)

使用指定的 ,將 () Status302Found 重新導向至指定的 pageNamerouteValues

(繼承來源 PageModel)
RedirectToPage(String, String)

使用指定的 ,將 () Status302Found 重新導向至指定的 pageNamepageHandler

(繼承來源 PageModel)
RedirectToPage(String, String, Object)

使用指定的 和 ,將 (Status302Found) 重新導向至指定的 pageNamepageHandlerrouteValues

(繼承來源 PageModel)
RedirectToPage(String, String, Object, String)

使用指定的 和 ,將 (Status302Found) 重新導向至指定的 pageNamerouteValuesfragment

(繼承來源 PageModel)
RedirectToPage(String, String, String)

使用指定的 ,將 () Status302Found 重新導向至指定的 pageNamefragment

(繼承來源 PageModel)
RedirectToPagePermanent(String)

將 (Status301MovedPermanently) 重新導向至指定的 pageName

(繼承來源 PageModel)
RedirectToPagePermanent(String, Object)

使用指定的 ,將 () Status301MovedPermanently 重新導向至指定的 pageNamerouteValues

(繼承來源 PageModel)
RedirectToPagePermanent(String, Object, String)

使用指定的 ,將 () Status301MovedPermanently 重新導向至指定的 pageNamefragment

(繼承來源 PageModel)
RedirectToPagePermanent(String, String)

將 (Status301MovedPermanently) 重新導向至指定的 pageName

(繼承來源 PageModel)
RedirectToPagePermanent(String, String, Object)

使用指定的 ,將 () Status301MovedPermanently 重新導向至指定的 pageNamerouteValues

(繼承來源 PageModel)
RedirectToPagePermanent(String, String, Object, String)

使用指定的 和 ,將 (Status301MovedPermanently) 重新導向至指定的 pageNamerouteValuesfragment

(繼承來源 PageModel)
RedirectToPagePermanent(String, String, String)

使用指定的 ,將 () Status301MovedPermanently 重新導向至指定的 pageNamefragment

(繼承來源 PageModel)
RedirectToPagePermanentPreserveMethod(String, String, Object, String)

使用指定的 pageNamerouteValues 和 ,將 () Status308PermanentRedirect 重新導向至指定的路由 Permanent ,並將 PreserveMethod 設定為 true。 fragment

(繼承來源 PageModel)
RedirectToPagePreserveMethod(String, String, Object, String)

使用指定的 、 和 ,將 () Status307TemporaryRedirect 重新導向至指定的頁面 Permanent ,並將 PreserveMethod 設定為 false 並 fragment 設定為 true。 routeValuespageName

(繼承來源 PageModel)
RedirectToRoute(Object)

使用指定的 ,將 () Status302Found 重新導向至指定的 routeValues 路由。

(繼承來源 PageModel)
RedirectToRoute(String)

使用指定的 ,將 () Status302Found 重新導向至指定的 routeName 路由。

(繼承來源 PageModel)
RedirectToRoute(String, Object)

使用指定的 和 routeValues ,將 (Status302Found) 重新導向至指定的 routeName 路由。

(繼承來源 PageModel)
RedirectToRoute(String, Object, String)

使用指定的 、 routeValuesfragment ,將 (Status302Found) 重新導向至指定的 routeName 路由。

(繼承來源 PageModel)
RedirectToRoute(String, String)

使用指定的 和 fragment ,將 (Status302Found) 重新導向至指定的 routeName 路由。

(繼承來源 PageModel)
RedirectToRoutePermanent(Object)

使用指定的 routeValues ,將 (Status301MovedPermanently) 重新導向至指定的路由,並將 Permanent 設定為 true。

(繼承來源 PageModel)
RedirectToRoutePermanent(String)

使用指定的 routeName ,將 (Status301MovedPermanently) 重新導向至指定的路由,並將 Permanent 設定為 true。

(繼承來源 PageModel)
RedirectToRoutePermanent(String, Object)

使用 Status301MovedPermanently 指定的 routeNamerouteValues ,將 () 重新導向至指定的路由,並將 Permanent 設定為 true。

(繼承來源 PageModel)
RedirectToRoutePermanent(String, Object, String)

使用指定的 routeName 、 和 ,將 () Status301MovedPermanently 重新導向至指定的路由,並將 Permanentfragment 設定為 routeValues true。

(繼承來源 PageModel)
RedirectToRoutePermanent(String, String)

使用 Status301MovedPermanently 指定的 routeNamefragment ,將 () 重新導向至指定的路由,並將 Permanent 設定為 true。

(繼承來源 PageModel)
RedirectToRoutePermanentPreserveMethod(String, Object, String)

使用指定的 routeNamerouteValues 和 ,將 () Status308PermanentRedirect 重新導向至指定的路由 Permanent ,並將 PreserveMethod 設定為 true。 fragment

(繼承來源 PageModel)
RedirectToRoutePreserveMethod(String, Object, String)

使用指定的 、 和 ,將 () Status307TemporaryRedirect 重新導向至指定的路由 Permanent ,並將 PreserveMethod 設定為 false 並 fragment 設定為 true。 routeValuesrouteName

(繼承來源 PageModel)
SignIn(ClaimsPrincipal, AuthenticationProperties, String)

SignInResult使用指定的驗證配置和 properties 建立 。

(繼承來源 PageModel)
SignIn(ClaimsPrincipal, String)

使用指定的驗證配置建立 SignInResult

(繼承來源 PageModel)
SignOut(AuthenticationProperties, String[])

SignOutResult使用指定的驗證配置和 properties 建立 。

(繼承來源 PageModel)
SignOut(String[])

使用指定的驗證配置建立 SignOutResult

(繼承來源 PageModel)
StatusCode(Int32)

藉由指定 statusCode 來建立 StatusCodeResult 物件。

(繼承來源 PageModel)
StatusCode(Int32, Object)

藉由指定 statusCode 和 來建立 ObjectResult 物件value

(繼承來源 PageModel)
TryUpdateModelAsync(Object, Type, String)

更新指定的 model 實例使用 來自 PageModel 目前 IValueProvidername 的值。

(繼承來源 PageModel)
TryUpdateModelAsync(Object, Type, String, IValueProvider, Func<ModelMetadata,Boolean>)

使用 和 name 更新指定的 model 實例 valueProvider

(繼承來源 PageModel)
TryUpdateModelAsync<TModel>(TModel)

使用目前 IValueProvider 的值 PageModel 更新指定的 model 實例。

(繼承來源 PageModel)
TryUpdateModelAsync<TModel>(TModel, String)

使用目前 IValueProvider 的值 PageModel 更新指定的 model 實例。

(繼承來源 PageModel)
TryUpdateModelAsync<TModel>(TModel, String, Expression<Func<TModel,Object>>[])

更新指定的 model 實例使用 來自 PageModel 目前 IValueProvidername 的值。

(繼承來源 PageModel)
TryUpdateModelAsync<TModel>(TModel, String, Func<ModelMetadata,Boolean>)

更新指定的 model 實例使用 來自 PageModel 目前 IValueProvidername 的值。

(繼承來源 PageModel)
TryUpdateModelAsync<TModel>(TModel, String, IValueProvider)

使用 和 name 更新指定的 model 實例 valueProvider

(繼承來源 PageModel)
TryUpdateModelAsync<TModel>(TModel, String, IValueProvider, Expression<Func<TModel,Object>>[])

使用 和 name 更新指定的 model 實例 valueProvider

(繼承來源 PageModel)
TryUpdateModelAsync<TModel>(TModel, String, IValueProvider, Func<ModelMetadata,Boolean>)

使用 和 name 更新指定的 model 實例 valueProvider

(繼承來源 PageModel)
TryValidateModel(Object)

驗證指定的 model 實例。

(繼承來源 PageModel)
TryValidateModel(Object, String)

驗證指定的 model 實例。

(繼承來源 PageModel)
Unauthorized()

UnauthorizedResult建立產生回應的 Status401Unauthorized

(繼承來源 PageModel)
ViewComponent(String)

指定要 ViewComponentResult 轉譯的檢視元件名稱,以建立 。

(繼承來源 PageModel)
ViewComponent(String, Object)

指定要 ViewComponentResult 轉譯的檢視元件名稱,以建立 。

(繼承來源 PageModel)
ViewComponent(Type)

指定要 ViewComponentResultType 轉譯之檢視元件的 ,以建立 。

(繼承來源 PageModel)
ViewComponent(Type, Object)

指定要 ViewComponentResultType 轉譯之檢視元件的 ,以建立 。

(繼承來源 PageModel)

適用於