LoginWithRecoveryCodeModel 類別

定義

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

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

建構函式

LoginWithRecoveryCodeModel()

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

屬性

HttpContext

取得 HttpContext

(繼承來源 PageModel)
Input

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

MetadataProvider

取得或設定 IModelMetadataProvider

(繼承來源 PageModel)
ModelState

取得 ModelStateDictionary

(繼承來源 PageModel)
PageContext

取得 PageContext

(繼承來源 PageModel)
Request

取得 HttpRequest

(繼承來源 PageModel)
Response

取得 HttpResponse

(繼承來源 PageModel)
ReturnUrl

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

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)

ChallengeResult使用指定的 properties 建立 。

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

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

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

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

(繼承來源 PageModel)
Content(String)

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

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

藉由指定字串和 來建立 ContentResultcontent 物件 Status200OKcontentType

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

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

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

ContentResult藉由指定字串、、 contentTypecontentEncoding 來建立 content 物件 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 () Status200OKcontentType 中指定為 Content-Type 的檔案,並將指定 fileDownloadName 為建議的檔案名。

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

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

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

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

(繼承來源 PageModel)
Forbid()

預設會建立 ForbidResult (Status403Forbidden) 。

(繼承來源 PageModel)
Forbid(AuthenticationProperties)

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

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

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

(繼承來源 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)
OnGetAsync(String)

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

OnPageHandlerExecuted(PageHandlerExecutedContext)

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

(繼承來源 PageModel)
OnPageHandlerExecuting(PageHandlerExecutingContext)

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

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

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

(繼承來源 PageModel)
OnPageHandlerSelected(PageHandlerSelectedContext)

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

(繼承來源 PageModel)
OnPageHandlerSelectionAsync(PageHandlerSelectedContext)

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

(繼承來源 PageModel)
OnPostAsync(String)

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

Page()

建立呈現 PageResult 頁面的 物件。

(繼承來源 PageModel)
Partial(String)

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

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

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

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

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

(繼承來源 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)

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

(繼承來源 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) 重新導向至設定為 true 的指定 actionName 動作 PermanentfragmentrouteValuescontrollerName

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

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

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

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

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

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

(繼承來源 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)

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

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

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

(繼承來源 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)

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

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

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

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

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

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

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

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

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

(繼承來源 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)

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

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

使用 valueProvidername 更新指定的 model 實例。

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

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

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

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

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

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

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

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

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

使用 valueProvidername 更新指定的 model 實例。

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

使用 valueProvidername 更新指定的 model 實例。

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

使用 valueProvidername 更新指定的 model 實例。

(繼承來源 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)

適用於