語言

ControllerBase 類別

定義

MVC 控制器的基類,不含檢視支援。

public ref class ControllerBase abstract
[Microsoft.AspNetCore.Mvc.Controller]
public abstract class ControllerBase
[<Microsoft.AspNetCore.Mvc.Controller>]
type ControllerBase = class
Public MustInherit Class ControllerBase
繼承
ControllerBase
衍生
屬性

建構函式

名稱 Description
ControllerBase()

MVC 控制器的基類,不含檢視支援。

屬性

名稱 Description
ControllerContext

取得或設定 ControllerContext。

Empty

取得 EmptyResult的實例。

HttpContext

取得執行動作的 HttpContext。

MetadataProvider

取得或設定 IModelMetadataProvider。

ModelBinderFactory

取得或設定 IModelBinderFactory。

ModelState

取得包含模型狀態和模型系結驗證之 ModelStateDictionary。

ObjectValidator

取得或設定 IObjectModelValidator。

ProblemDetailsFactory

取得或設定 ProblemDetailsFactory。

Request

取得執行動作的 HttpRequest。

Response

取得執行動作的 HttpResponse。

RouteData

取得執行動作的 RouteData。

Url

取得或設定 IUrlHelper。

User

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

方法

名稱 Description
Accepted()

建立會產生 Status202Accepted 回應 AcceptedResult 物件。

Accepted(Object)

建立會產生 Status202Accepted 回應 AcceptedResult 物件。

Accepted(String)

建立會產生 Status202Accepted 回應 AcceptedResult 物件。

Accepted(String, Object)

建立會產生 Status202Accepted 回應 AcceptedResult 物件。

Accepted(Uri)

建立會產生 Status202Accepted 回應 AcceptedResult 物件。

Accepted(Uri, Object)

建立會產生 Status202Accepted 回應 AcceptedResult 物件。

AcceptedAtAction(String)

建立會產生 Status202Accepted 回應 AcceptedAtActionResult 物件。

AcceptedAtAction(String, Object)

建立會產生 Status202Accepted 回應 AcceptedAtActionResult 物件。

AcceptedAtAction(String, Object, Object)

建立會產生 Status202Accepted 回應 AcceptedAtActionResult 物件。

AcceptedAtAction(String, String)

建立會產生 Status202Accepted 回應 AcceptedAtActionResult 物件。

AcceptedAtAction(String, String, Object)

建立會產生 Status202Accepted 回應 AcceptedAtActionResult 物件。

AcceptedAtAction(String, String, Object, Object)

建立會產生 Status202Accepted 回應 AcceptedAtActionResult 物件。

AcceptedAtRoute(Object)

建立會產生 Status202Accepted 回應 AcceptedAtRouteResult 物件。

AcceptedAtRoute(Object, Object)

建立會產生 Status202Accepted 回應 AcceptedAtRouteResult 物件。

AcceptedAtRoute(String)

建立會產生 Status202Accepted 回應 AcceptedAtRouteResult 物件。

AcceptedAtRoute(String, Object)

建立會產生 Status202Accepted 回應 AcceptedAtRouteResult 物件。

AcceptedAtRoute(String, Object, Object)

建立會產生 Status202Accepted 回應 AcceptedAtRouteResult 物件。

BadRequest()

建立產生 Status400BadRequest 回應的 BadRequestResult。

BadRequest(ModelStateDictionary)

建立產生 Status400BadRequest 回應的 BadRequestObjectResult。

BadRequest(Object)

建立產生 Status400BadRequest 回應的 BadRequestObjectResult。

Challenge()

建立 ChallengeResult。

Challenge(AuthenticationProperties)

使用指定的 properties建立 ChallengeResult。

Challenge(AuthenticationProperties)

使用指定的 properties建立 ChallengeResult。

Challenge(AuthenticationProperties, String[])

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

Challenge(AuthenticationProperties, String[])

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

Challenge(String[])

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

Conflict()

建立產生 Status409Conflict 回應的 ConflictResult。

Conflict(ModelStateDictionary)

建立產生 Status409Conflict 回應的 ConflictObjectResult。

Conflict(Object)

建立產生 Status409Conflict 回應的 ConflictObjectResult。

Content(String)

藉由指定 content 字串,建立 ContentResult 物件。

Content(String, MediaTypeHeaderValue)

藉由指定 content 字串和 contentType,建立 ContentResult 物件。

Content(String, String)

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

Content(String, String, Encoding)

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

Created()

建立會產生 Status201Created 回應 CreatedResult 物件。

Created(String, Object)

建立會產生 Status201Created 回應 CreatedResult 物件。

Created(Uri, Object)

建立會產生 Status201Created 回應 CreatedResult 物件。

CreatedAtAction(String, Object)

建立會產生 Status201Created 回應 CreatedAtActionResult 物件。

CreatedAtAction(String, Object, Object)

建立會產生 Status201Created 回應 CreatedAtActionResult 物件。

CreatedAtAction(String, String, Object, Object)

建立會產生 Status201Created 回應 CreatedAtActionResult 物件。

CreatedAtRoute(Object, Object)

建立會產生 Status201Created 回應 CreatedAtRouteResult 物件。

CreatedAtRoute(String, Object)

建立會產生 Status201Created 回應 CreatedAtRouteResult 物件。

CreatedAtRoute(String, Object, Object)

建立會產生 Status201Created 回應 CreatedAtRouteResult 物件。

File(Byte[], String)

傳回具有指定之 fileContents 為 content (Status200OK), 且指定 contentType 為 Content-Type 的檔案。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(Byte[], String, Boolean)

傳回具有指定之 fileContents 為 content (Status200OK), 且指定 contentType 為 Content-Type 的檔案。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(Byte[], String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

傳回具有指定之 fileContents 為 content (Status200OK), 且指定 contentType 為 Content-Type 的檔案。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(Byte[], String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

傳回具有指定之 fileContents 為 content (Status200OK), 且指定 contentType 為 Content-Type 的檔案。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(Byte[], String, String)

傳回具有指定 fileContents 為 content 的檔案(Status200OK)、指定的 contentType 做為 Content-Type,並將指定的 fileDownloadName 當做建議的檔名。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(Byte[], String, String, Boolean)

傳回具有指定 fileContents 為 content 的檔案(Status200OK)、指定的 contentType 做為 Content-Type,並將指定的 fileDownloadName 當做建議的檔名。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(Byte[], String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

傳回具有指定 fileContents 為 content 的檔案(Status200OK)、指定 contentType 為 Content-Type,以及指定 fileDownloadName 為建議的檔名。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(Byte[], String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

傳回具有指定 fileContents 為 content 的檔案(Status200OK)、指定 contentType 為 Content-Type,以及指定 fileDownloadName 為建議的檔名。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(Stream, String)

傳回指定之 fileStream (Status200OK), 中指定 contentType 為 Content-Type 的檔案。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(Stream, String, Boolean)

傳回指定之 fileStream (Status200OK), 中指定 contentType 為 Content-Type 的檔案。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(Stream, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

傳回指定之 fileStream (Status200OK) 中的檔案,並將指定的 contentType 傳回為 Content-Type。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(Stream, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

傳回指定之 fileStream (Status200OK) 中的檔案,並將指定的 contentType 傳回為 Content-Type。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(Stream, String, String)

傳回指定之 fileStream (Status200OK) 中的檔案,並將指定的 contentType 當做 Content-Type,並將指定的 fileDownloadName 當做建議的檔名。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(Stream, String, String, Boolean)

傳回指定之 fileStream (Status200OK) 中的檔案,並將指定的 contentType 當做 Content-Type,並將指定的 fileDownloadName 當做建議的檔名。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(Stream, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

傳回指定之 fileStream (Status200OK)、指定 contentType 為 Content-Type 的檔案,以及指定 fileDownloadName 為建議的檔名。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(Stream, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

傳回指定之 fileStream (Status200OK)、指定 contentType 為 Content-Type 的檔案,以及指定 fileDownloadName 為建議的檔名。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(String, String)

傳回由 virtualPath (Status200OK) 所指定的檔案,並將指定的 contentType 當做 Content-Type。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(String, String, Boolean)

傳回由 virtualPath (Status200OK) 所指定的檔案,並將指定的 contentType 當做 Content-Type。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

傳回由 virtualPath (Status200OK) 所指定的檔案,並將指定的 contentType 傳回為 Content-Type。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

傳回由 virtualPath (Status200OK) 所指定的檔案,並將指定的 contentType 傳回為 Content-Type。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(String, String, String)

傳回 virtualPath (Status200OK) 所指定的檔案,指定 contentType 為 Content-Type,並將指定的 fileDownloadName 指定為建議的檔名。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(String, String, String, Boolean)

傳回 virtualPath (Status200OK) 所指定的檔案,指定 contentType 為 Content-Type,並將指定的 fileDownloadName 指定為建議的檔名。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

傳回 virtualPath 所指定的檔案(Status200OK)、指定的 contentType 為 Content-Type,以及指定的 fileDownloadName 為建議的檔名。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

File(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

傳回 virtualPath 所指定的檔案(Status200OK)、指定的 contentType 為 Content-Type,以及指定的 fileDownloadName 為建議的檔名。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

Forbid()

預設會建立 ForbidResult (Status403Forbidden)。

Forbid(AuthenticationProperties)

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

Forbid(AuthenticationProperties)

使用指定的 properties建立 ForbidResult。

Forbid(AuthenticationProperties, String[])

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

Forbid(AuthenticationProperties, String[])

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

Forbid(String[])

使用指定的驗證配置建立 ForbidResult(預設為Status403Forbidden)。

LocalRedirect(String)

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

LocalRedirectPermanent(String)

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

LocalRedirectPermanentPreserveMethod(String)

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

LocalRedirectPreserveMethod(String)

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

NoContent()

建立會產生空 Status204NoContent 回應的 NoContentResult 物件。

NotFound()

建立產生 Status404NotFound 回應的 NotFoundResult。

NotFound(Object)

建立產生 Status404NotFound 回應的 NotFoundObjectResult。

Ok()

建立會產生空 Status200OK 回應的 OkResult 物件。

Ok(Object)

建立會產生 Status200OK 回應 OkObjectResult 物件。

PhysicalFile(String, String)

傳回由 physicalPath (Status200OK) 所指定的檔案,並將指定的 contentType 當做 Content-Type。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

PhysicalFile(String, String, Boolean)

傳回由 physicalPath (Status200OK) 所指定的檔案,並將指定的 contentType 當做 Content-Type。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

傳回由 physicalPath (Status200OK) 所指定的檔案,並將指定的 contentType 傳回為 Content-Type。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

傳回由 physicalPath (Status200OK) 所指定的檔案,並將指定的 contentType 傳回為 Content-Type。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

PhysicalFile(String, String, String)

傳回 physicalPath (Status200OK) 所指定的檔案,指定 contentType 為 Content-Type,並將指定的 fileDownloadName 指定為建議的檔名。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

PhysicalFile(String, String, String, Boolean)

傳回 physicalPath (Status200OK) 所指定的檔案,指定 contentType 為 Content-Type,並將指定的 fileDownloadName 指定為建議的檔名。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

傳回 physicalPath 所指定的檔案(Status200OK)、指定的 contentType 為 Content-Type,以及指定的 fileDownloadName 為建議的檔名。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

傳回 physicalPath 所指定的檔案(Status200OK)、指定的 contentType 為 Content-Type,以及指定的 fileDownloadName 為建議的檔名。 這支援範圍要求(如果無法滿足範圍,Status206PartialContent 或 Status416RangeNotSatisfiable)。

Problem(String, String, Nullable<Int32>, String, String)

建立產生 ProblemDetails 回應的 ObjectResult。

Problem(String, String, Nullable<Int32>, String, String, IDictionary<String,Object>)

建立產生 ProblemDetails 回應的 ObjectResult。

Redirect(String)

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

RedirectPermanent(String)

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

RedirectPermanentPreserveMethod(String)

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

RedirectPreserveMethod(String)

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

RedirectToAction()

將 (Status302Found) 重新導向至與目前動作同名的動作。 從目前要求的環境值擷取 'controller' 和 'action' 名稱。

RedirectToAction(String)

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

RedirectToAction(String, Object)

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

RedirectToAction(String, String)

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

RedirectToAction(String, String, Object)

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

RedirectToAction(String, String, Object, String)

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

RedirectToAction(String, String, String)

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

RedirectToActionPermanent(String)

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

RedirectToActionPermanent(String, Object)

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

RedirectToActionPermanent(String, String)

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

RedirectToActionPermanent(String, String, Object)

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

RedirectToActionPermanent(String, String, Object, String)

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

RedirectToActionPermanent(String, String, String)

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

RedirectToActionPermanentPreserveMethod(String, String, Object, String)

使用指定的 actionName、controllerName、routeValues和 fragment,將 Permanent 設定為 true,PreserveMethod 並將Status308PermanentRedirect重新導向至指定的動作。

RedirectToActionPreserveMethod(String, String, Object, String)

使用指定的 actionName、controllerName、routeValues和 fragment,將 Permanent 設定為 false,並將 PreserveMethod 重新導向至指定的動作。Status307TemporaryRedirect

RedirectToPage(String)

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

RedirectToPage(String, Object)

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

RedirectToPage(String, String)

使用指定的 pageHandler,將 (Status302Found) 重新導向至指定的 pageName。

RedirectToPage(String, String, Object)

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

RedirectToPage(String, String, Object, String)

使用指定的 routeValues 和 fragment,將 (Status302Found) 重新導向至指定的 pageName。

RedirectToPage(String, String, String)

使用指定的 fragment,將 (Status302Found) 重新導向至指定的 pageName。

RedirectToPagePermanent(String)

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

RedirectToPagePermanent(String, Object)

使用指定的 routeValues,將 (Status301MovedPermanently) 重新導向至指定的 pageName。

RedirectToPagePermanent(String, String)

使用指定的 pageHandler,將 (Status301MovedPermanently) 重新導向至指定的 pageName。

RedirectToPagePermanent(String, String, Object, String)

使用指定的 routeValues 和 fragment,將 (Status301MovedPermanently) 重新導向至指定的 pageName。

RedirectToPagePermanent(String, String, String)

使用指定的 fragment,將 (Status301MovedPermanently) 重新導向至指定的 pageName。

RedirectToPagePermanentPreserveMethod(String, String, Object, String)

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

RedirectToPagePreserveMethod(String, String, Object, String)

使用指定的 pageName、routeValues和 fragment,將 Permanent 設定為 false 且 PreserveMethod 設為 true,將 重新導向Status307TemporaryRedirect至指定的頁面。

RedirectToRoute(Object)

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

RedirectToRoute(String)

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

RedirectToRoute(String, Object)

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

RedirectToRoute(String, Object, String)

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

RedirectToRoute(String, String)

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

RedirectToRoutePermanent(Object)

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

RedirectToRoutePermanent(String)

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

RedirectToRoutePermanent(String, Object)

使用指定的 routeName 與 routeValues,將 Permanent 設定為 true 的指定路由重新導向Status301MovedPermanently。

RedirectToRoutePermanent(String, Object, String)

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

RedirectToRoutePermanent(String, String)

使用指定的 routeName 與 fragment,將 Permanent 設定為 true 的指定路由重新導向Status301MovedPermanently。

RedirectToRoutePermanentPreserveMethod(String, Object, String)

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

RedirectToRoutePreserveMethod(String, Object, String)

使用指定的 routeName、routeValues和 fragment,將Status307TemporaryRedirectPermanent 設定為 false,並將 PreserveMethod 重新導向至指定的路由。

SignIn(ClaimsPrincipal)

建立 SignInResult。

SignIn(ClaimsPrincipal, AuthenticationProperties)

使用 properties建立 SignInResult。

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

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

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

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

SignIn(ClaimsPrincipal, String)

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

SignOut()

建立 SignOutResult。

SignOut(AuthenticationProperties)

使用 properties建立 SignOutResult。

SignOut(AuthenticationProperties, String[])

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

SignOut(AuthenticationProperties, String[])

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

SignOut(String[])

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

StatusCode(Int32)

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

StatusCode(Int32, Object)

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

TryUpdateModelAsync(Object, Type, String)

使用控制器目前 IValueProvider 和 prefix的值,更新指定的 model 實例。

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

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

TryUpdateModelAsync<TModel>(TModel)

使用來自控制器目前 IValueProvider的值,更新指定的 model 實例。

TryUpdateModelAsync<TModel>(TModel, String)

使用控制器目前 IValueProvider 和 prefix的值,更新指定的 model 實例。

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

使用控制器目前 IValueProvider 和 prefix的值,更新指定的 model 實例。

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

使用控制器目前 IValueProvider 和 prefix的值,更新指定的 model 實例。

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider)

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

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

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

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

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

TryValidateModel(Object)

驗證指定的 model 實例。

TryValidateModel(Object, String)

驗證指定的 model 實例。

Unauthorized()

建立產生 Status401Unauthorized 回應的 UnauthorizedResult。

Unauthorized(Object)

建立產生 Status401Unauthorized 回應的 UnauthorizedObjectResult。

UnprocessableEntity()

建立產生 Status422UnprocessableEntity 回應的 UnprocessableEntityResult。

UnprocessableEntity(ModelStateDictionary)

建立產生 Status422UnprocessableEntity 回應的 UnprocessableEntityObjectResult。

UnprocessableEntity(Object)

建立產生 Status422UnprocessableEntity 回應的 UnprocessableEntityObjectResult。

ValidationProblem()

建立產生來自 ModelState驗證錯誤的 Status400BadRequest 回應 ActionResult。

ValidationProblem(ModelStateDictionary)

建立產生來自 modelStateDictionary驗證錯誤的 Status400BadRequest 回應 ActionResult。

ValidationProblem(String, String, Nullable<Int32>, String, String, ModelStateDictionary)

建立產生具有 ValidationProblemDetails 值的 Status400BadRequest 回應 ActionResult。

ValidationProblem(String, String, Nullable<Int32>, String, String, ModelStateDictionary, IDictionary<String,Object>)

建立產生具有 ValidationProblemDetails 值的 Status400BadRequest 回應 ActionResult。

ValidationProblem(ValidationProblemDetails)

建立產生 Status400BadRequest 回應的 BadRequestObjectResult。

適用於