Movatterモバイル変換


[0]ホーム

URL:


Skip to main contentSkip to in-page navigation

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit focus mode

ControllerBase Class

Definition

Namespace:
Microsoft.AspNetCore.Mvc
Assembly:
Microsoft.AspNetCore.Mvc.Core.dll
Package:
Microsoft.AspNetCore.Mvc.Core v1.0.0
Package:
Microsoft.AspNetCore.Mvc.Core v1.1.0
Package:
Microsoft.AspNetCore.App.Ref v10.0.0-preview.5.25277.114
Package:
Microsoft.AspNetCore.Mvc.Core v2.0.0
Package:
Microsoft.AspNetCore.Mvc.Core v2.1.0
Package:
Microsoft.AspNetCore.Mvc.Core v2.2.0
Package:
Microsoft.AspNetCore.App.Ref v3.0.1
Package:
Microsoft.AspNetCore.App.Ref v3.1.10
Package:
Microsoft.AspNetCore.App.Ref v5.0.0
Package:
Microsoft.AspNetCore.App.Ref v6.0.6
Package:
Microsoft.AspNetCore.App.Ref v7.0.5
Package:
Microsoft.AspNetCore.App.Ref v8.0.0
Package:
Microsoft.AspNetCore.App.Ref v9.0.2
Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

A base class for an MVC controller without view support.

public ref class ControllerBase abstract
[Microsoft.AspNetCore.Mvc.Controller]public abstract class ControllerBase
[<Microsoft.AspNetCore.Mvc.Controller>]type ControllerBase = class
Public MustInherit Class ControllerBase
Inheritance
ControllerBase
Derived
Attributes

Constructors

ControllerBase()

Properties

ControllerContext

Gets or sets theControllerContext.

Empty

Gets an instance ofEmptyResult.

HttpContext

Gets theHttpContext for the executing action.

MetadataProvider

Gets or sets theIModelMetadataProvider.

ModelBinderFactory

Gets or sets theIModelBinderFactory.

ModelState

Gets theModelStateDictionary that contains the state of the model and of model-binding validation.

ObjectValidator

Gets or sets theIObjectModelValidator.

ProblemDetailsFactory

Gets or sets theProblemDetailsFactory.

Request

Gets theHttpRequest for the executing action.

Response

Gets theHttpResponse for the executing action.

RouteData

Gets theRouteData for the executing action.

Url

Gets or sets theIUrlHelper.

User

Gets theClaimsPrincipal for user associated with the executing action.

Methods

Accepted()

Creates anAcceptedResult object that produces aStatus202Accepted response.

Accepted(Object)

Creates anAcceptedResult object that produces aStatus202Accepted response.

Accepted(String, Object)

Creates anAcceptedResult object that produces aStatus202Accepted response.

Accepted(String)

Creates anAcceptedResult object that produces aStatus202Accepted response.

Accepted(Uri, Object)

Creates anAcceptedResult object that produces aStatus202Accepted response.

Accepted(Uri)

Creates anAcceptedResult object that produces aStatus202Accepted response.

AcceptedAtAction(String, Object, Object)

Creates anAcceptedAtActionResult object that produces aStatus202Accepted response.

AcceptedAtAction(String, Object)

Creates anAcceptedAtActionResult object that produces aStatus202Accepted response.

AcceptedAtAction(String, String, Object, Object)

Creates anAcceptedAtActionResult object that produces aStatus202Accepted response.

AcceptedAtAction(String, String, Object)

Creates anAcceptedAtActionResult object that produces aStatus202Accepted response.

AcceptedAtAction(String, String)

Creates anAcceptedAtActionResult object that produces aStatus202Accepted response.

AcceptedAtAction(String)

Creates anAcceptedAtActionResult object that produces aStatus202Accepted response.

AcceptedAtRoute(Object, Object)

Creates anAcceptedAtRouteResult object that produces aStatus202Accepted response.

AcceptedAtRoute(Object)

Creates anAcceptedAtRouteResult object that produces aStatus202Accepted response.

AcceptedAtRoute(String, Object, Object)

Creates anAcceptedAtRouteResult object that produces aStatus202Accepted response.

AcceptedAtRoute(String, Object)

Creates anAcceptedAtRouteResult object that produces aStatus202Accepted response.

AcceptedAtRoute(String)

Creates anAcceptedAtRouteResult object that produces aStatus202Accepted response.

BadRequest()

Creates aBadRequestResult that produces aStatus400BadRequest response.

BadRequest(ModelStateDictionary)

Creates aBadRequestObjectResult that produces aStatus400BadRequest response.

BadRequest(Object)

Creates aBadRequestObjectResult that produces aStatus400BadRequest response.

Challenge()

Creates aChallengeResult.

Challenge(AuthenticationProperties, String[])

Creates aChallengeResult with the specified specified authentication schemes andproperties.

Challenge(AuthenticationProperties, String[])

Creates aChallengeResult with the specified authentication schemes andproperties.

Challenge(AuthenticationProperties)

Creates aChallengeResult with the specifiedproperties.

Challenge(AuthenticationProperties)

Creates aChallengeResult with the specifiedproperties.

Challenge(String[])

Creates aChallengeResult with the specified authentication schemes.

Conflict()

Creates aConflictResult that produces aStatus409Conflict response.

Conflict(ModelStateDictionary)

Creates aConflictObjectResult that produces aStatus409Conflict response.

Conflict(Object)

Creates aConflictObjectResult that produces aStatus409Conflict response.

Content(String, MediaTypeHeaderValue)

Creates aContentResult object by specifying acontent string and acontentType.

Content(String, String, Encoding)

Creates aContentResult object by specifying acontent string, acontentType, andcontentEncoding.

Content(String, String)

Creates aContentResult object by specifying acontent string and a content type.

Content(String)

Creates aContentResult object by specifying acontent string.

Created()

Creates aCreatedResult object that produces aStatus201Created response.

Created(String, Object)

Creates aCreatedResult object that produces aStatus201Created response.

Created(Uri, Object)

Creates aCreatedResult object that produces aStatus201Created response.

CreatedAtAction(String, Object, Object)

Creates aCreatedAtActionResult object that produces aStatus201Created response.

CreatedAtAction(String, Object)

Creates aCreatedAtActionResult object that produces aStatus201Created response.

CreatedAtAction(String, String, Object, Object)

Creates aCreatedAtActionResult object that produces aStatus201Created response.

CreatedAtRoute(Object, Object)

Creates aCreatedAtRouteResult object that produces aStatus201Created response.

CreatedAtRoute(String, Object, Object)

Creates aCreatedAtRouteResult object that produces aStatus201Created response.

CreatedAtRoute(String, Object)

Creates aCreatedAtRouteResult object that produces aStatus201Created response.

File(Byte[], String, Boolean)

Returns a file with the specifiedfileContents as content (Status200OK),and the specifiedcontentType as the Content-Type.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns a file with the specifiedfileContents as content (Status200OK),and the specifiedcontentType as the Content-Type.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns a file with the specifiedfileContents as content (Status200OK),and the specifiedcontentType as the Content-Type.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns a file with the specifiedfileContents as content (Status200OK), thespecifiedcontentType as the Content-Type and the specifiedfileDownloadName as the suggested file name.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns a file with the specifiedfileContents as content (Status200OK), thespecifiedcontentType as the Content-Type, and the specifiedfileDownloadName as the suggested file name.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns a file with the specifiedfileContents as content (Status200OK), thespecifiedcontentType as the Content-Type, and the specifiedfileDownloadName as the suggested file name.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

File(Byte[], String, String)

Returns a file with the specifiedfileContents as content (Status200OK), thespecifiedcontentType as the Content-Type and the specifiedfileDownloadName as the suggested file name.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

File(Byte[], String)

Returns a file with the specifiedfileContents as content (Status200OK),and the specifiedcontentType as the Content-Type.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

File(Stream, String, Boolean)

Returns a file in the specifiedfileStream (Status200OK), with thespecifiedcontentType as the Content-Type.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns a file in the specifiedfileStream (Status200OK),and the specifiedcontentType as the Content-Type.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns a file in the specifiedfileStream (Status200OK),and the specifiedcontentType as the Content-Type.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

File(Stream, String, String, Boolean)

Returns a file in the specifiedfileStream (Status200OK) with thespecifiedcontentType as the Content-Type and thespecifiedfileDownloadName as the suggested file name.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns a file in the specifiedfileStream (Status200OK), thespecifiedcontentType as the Content-Type, and the specifiedfileDownloadName as the suggested file name.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns a file in the specifiedfileStream (Status200OK), thespecifiedcontentType as the Content-Type, and the specifiedfileDownloadName as the suggested file name.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

File(Stream, String, String)

Returns a file in the specifiedfileStream (Status200OK) with thespecifiedcontentType as the Content-Type and thespecifiedfileDownloadName as the suggested file name.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

File(Stream, String)

Returns a file in the specifiedfileStream (Status200OK), with thespecifiedcontentType as the Content-Type.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

File(String, String, Boolean)

Returns the file specified byvirtualPath (Status200OK) with thespecifiedcontentType as the Content-Type.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns the file specified byvirtualPath (Status200OK), and thespecifiedcontentType as the Content-Type.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns the file specified byvirtualPath (Status200OK), and thespecifiedcontentType as the Content-Type.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

File(String, String, String, Boolean)

Returns the file specified byvirtualPath (Status200OK) with thespecifiedcontentType as the Content-Type and thespecifiedfileDownloadName as the suggested file name.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns the file specified byvirtualPath (Status200OK), thespecifiedcontentType as the Content-Type, and the specifiedfileDownloadName as the suggested file name.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns the file specified byvirtualPath (Status200OK), thespecifiedcontentType as the Content-Type, and the specifiedfileDownloadName as the suggested file name.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

File(String, String, String)

Returns the file specified byvirtualPath (Status200OK) with thespecifiedcontentType as the Content-Type and thespecifiedfileDownloadName as the suggested file name.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

File(String, String)

Returns the file specified byvirtualPath (Status200OK) with thespecifiedcontentType as the Content-Type.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

Forbid()

Creates aForbidResult (Status403Forbidden by default).

Forbid(AuthenticationProperties, String[])

Creates aForbidResult (Status403Forbidden by default) with thespecified authentication schemes andproperties.

Forbid(AuthenticationProperties, String[])

Creates aForbidResult with the specified specified authentication schemes andproperties.

Forbid(AuthenticationProperties)

Creates aForbidResult (Status403Forbidden by default) with thespecifiedproperties.

Forbid(AuthenticationProperties)

Creates aForbidResult with the specifiedproperties.

Forbid(String[])

Creates aForbidResult (Status403Forbidden by default) with thespecified authentication schemes.

LocalRedirect(String)

Creates aLocalRedirectResult object that redirects(Status302Found) to the specified locallocalUrl.

LocalRedirectPermanent(String)

Creates aLocalRedirectResult object withPermanent set totrue (Status301MovedPermanently) using the specifiedlocalUrl.

LocalRedirectPermanentPreserveMethod(String)

Creates aLocalRedirectResult object withPermanent set totrue andPreserveMethod set to true(Status308PermanentRedirect) using the specifiedlocalUrl.

LocalRedirectPreserveMethod(String)

Creates aLocalRedirectResult object withPermanent set tofalse andPreserveMethod set to true(Status307TemporaryRedirect) using the specifiedlocalUrl.

NoContent()

Creates aNoContentResult object that produces an emptyStatus204NoContent response.

NotFound()

Creates aNotFoundResult that produces aStatus404NotFound response.

NotFound(Object)

Creates aNotFoundObjectResult that produces aStatus404NotFound response.

Ok()

Creates anOkResult object that produces an emptyStatus200OK response.

Ok(Object)

Creates anOkObjectResult object that produces aStatus200OK response.

PhysicalFile(String, String, Boolean)

Returns the file specified byphysicalPath (Status200OK) with thespecifiedcontentType as the Content-Type.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns the file specified byphysicalPath (Status200OK), andthe specifiedcontentType as the Content-Type.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns the file specified byphysicalPath (Status200OK), andthe specifiedcontentType as the Content-Type.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

PhysicalFile(String, String, String, Boolean)

Returns the file specified byphysicalPath (Status200OK) with thespecifiedcontentType as the Content-Type and thespecifiedfileDownloadName as the suggested file name.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns the file specified byphysicalPath (Status200OK), thespecifiedcontentType as the Content-Type, and the specifiedfileDownloadName as the suggested file name.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Returns the file specified byphysicalPath (Status200OK), thespecifiedcontentType as the Content-Type, and the specifiedfileDownloadName as the suggested file name.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

PhysicalFile(String, String, String)

Returns the file specified byphysicalPath (Status200OK) with thespecifiedcontentType as the Content-Type and thespecifiedfileDownloadName as the suggested file name.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

PhysicalFile(String, String)

Returns the file specified byphysicalPath (Status200OK) with thespecifiedcontentType as the Content-Type.This supports range requests (Status206PartialContent orStatus416RangeNotSatisfiable if the range is not satisfiable).

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

Creates anObjectResult that produces aProblemDetails response.

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

Creates anObjectResult that produces aProblemDetails response.

Redirect(String)

Creates aRedirectResult object that redirects (Status302Found)to the specifiedurl.

RedirectPermanent(String)

Creates aRedirectResult object withPermanent set to true(Status301MovedPermanently) using the specifiedurl.

RedirectPermanentPreserveMethod(String)

Creates aRedirectResult object withPermanent set to trueandPreserveMethod set to true (Status308PermanentRedirect)using the specifiedurl.

RedirectPreserveMethod(String)

Creates aRedirectResult object withPermanent set to falseandPreserveMethod set to true (Status307TemporaryRedirect)using the specifiedurl.

RedirectToAction()

Redirects (Status302Found) to an action with the same name as current one.The 'controller' and 'action' names are retrieved from the ambient values of the current request.

RedirectToAction(String, Object)

Redirects (Status302Found) to the specified action using theactionName androuteValues.

RedirectToAction(String, String, Object, String)

Redirects (Status302Found) to the specified action using the specifiedactionName,controllerName,routeValues, andfragment.

RedirectToAction(String, String, Object)

Redirects (Status302Found) to the specified action using the specifiedactionName,controllerName, androuteValues.

RedirectToAction(String, String, String)

Redirects (Status302Found) to the specified action using the specifiedactionName,controllerName, andfragment.

RedirectToAction(String, String)

Redirects (Status302Found) to the specified action using theactionName and thecontrollerName.

RedirectToAction(String)

Redirects (Status302Found) to the specified action using theactionName.

RedirectToActionPermanent(String, Object)

Redirects (Status301MovedPermanently) to the specified action withPermanent set to true using the specifiedactionNameandrouteValues.

RedirectToActionPermanent(String, String, Object, String)

Redirects (Status301MovedPermanently) to the specified action withPermanent set to true using the specifiedactionName,controllerName,routeValues, andfragment.

RedirectToActionPermanent(String, String, Object)

Redirects (Status301MovedPermanently) to the specified action withPermanent set to true using the specifiedactionName,controllerName, androuteValues.

RedirectToActionPermanent(String, String, String)

Redirects (Status301MovedPermanently) to the specified action withPermanent set to true using the specifiedactionName,controllerName, andfragment.

RedirectToActionPermanent(String, String)

Redirects (Status301MovedPermanently) to the specified action withPermanent set to true using the specifiedactionNameandcontrollerName.

RedirectToActionPermanent(String)

Redirects (Status301MovedPermanently) to the specified action withPermanent set to true using the specifiedactionName.

RedirectToActionPermanentPreserveMethod(String, String, Object, String)

Redirects (Status308PermanentRedirect) to the specified action withPermanent set to true andPreserveMethodset to true, using the specifiedactionName,controllerName,routeValues, andfragment.

RedirectToActionPreserveMethod(String, String, Object, String)

Redirects (Status307TemporaryRedirect) to the specified action withPermanent set to false andPreserveMethodset to true, using the specifiedactionName,controllerName,routeValues, andfragment.

RedirectToPage(String, Object)

Redirects (Status302Found) to the specifiedpageNameusing the specifiedrouteValues.

RedirectToPage(String, String, Object, String)

Redirects (Status302Found) to the specifiedpageNameusing the specifiedrouteValues andfragment.

RedirectToPage(String, String, Object)

Redirects (Status302Found) to the specifiedpageName.

RedirectToPage(String, String, String)

Redirects (Status302Found) to the specifiedpageNameusing the specifiedfragment.

RedirectToPage(String, String)

Redirects (Status302Found) to the specifiedpageNameusing the specifiedpageHandler.

RedirectToPage(String)

Redirects (Status302Found) to the specifiedpageName.

RedirectToPagePermanent(String, Object)

Redirects (Status301MovedPermanently) to the specifiedpageNameusing the specifiedrouteValues.

RedirectToPagePermanent(String, String, Object, String)

Redirects (Status301MovedPermanently) to the specifiedpageNameusing the specifiedrouteValues andfragment.

RedirectToPagePermanent(String, String, String)

Redirects (Status301MovedPermanently) to the specifiedpageNameusing the specifiedfragment.

RedirectToPagePermanent(String, String)

Redirects (Status301MovedPermanently) to the specifiedpageNameusing the specifiedpageHandler.

RedirectToPagePermanent(String)

Redirects (Status301MovedPermanently) to the specifiedpageName.

RedirectToPagePermanentPreserveMethod(String, String, Object, String)

Redirects (Status308PermanentRedirect) to the specified route withPermanent set to true andPreserveMethodset to true, using the specifiedpageName,routeValues, andfragment.

RedirectToPagePreserveMethod(String, String, Object, String)

Redirects (Status307TemporaryRedirect) to the specified page withPermanent set to false andPreserveMethodset to true, using the specifiedpageName,routeValues, andfragment.

RedirectToRoute(Object)

Redirects (Status302Found) to the specified route using the specifiedrouteValues.

RedirectToRoute(String, Object, String)

Redirects (Status302Found) to the specified route using the specifiedrouteName,routeValues, andfragment.

RedirectToRoute(String, Object)

Redirects (Status302Found) to the specified route using the specifiedrouteName androuteValues.

RedirectToRoute(String, String)

Redirects (Status302Found) to the specified route using the specifiedrouteName andfragment.

RedirectToRoute(String)

Redirects (Status302Found) to the specified route using the specifiedrouteName.

RedirectToRoutePermanent(Object)

Redirects (Status301MovedPermanently) to the specified route withPermanent set to true using the specifiedrouteValues.

RedirectToRoutePermanent(String, Object, String)

Redirects (Status301MovedPermanently) to the specified route withPermanent set to true using the specifiedrouteName,routeValues, andfragment.

RedirectToRoutePermanent(String, Object)

Redirects (Status301MovedPermanently) to the specified route withPermanent set to true using the specifiedrouteNameandrouteValues.

RedirectToRoutePermanent(String, String)

Redirects (Status301MovedPermanently) to the specified route withPermanent set to true using the specifiedrouteNameandfragment.

RedirectToRoutePermanent(String)

Redirects (Status301MovedPermanently) to the specified route withPermanent set to true using the specifiedrouteName.

RedirectToRoutePermanentPreserveMethod(String, Object, String)

Redirects (Status308PermanentRedirect) to the specified route withPermanent set to true andPreserveMethodset to true, using the specifiedrouteName,routeValues, andfragment.

RedirectToRoutePreserveMethod(String, Object, String)

Redirects (Status307TemporaryRedirect) to the specified route withPermanent set to false andPreserveMethodset to true, using the specifiedrouteName,routeValues, andfragment.

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

Creates aSignInResult with the specified specified authentication scheme andproperties.

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

Creates aSignInResult with the specified authentication scheme andproperties.

SignIn(ClaimsPrincipal, AuthenticationProperties)

Creates aSignInResult withproperties.

SignIn(ClaimsPrincipal, String)

Creates aSignInResult with the specified authentication scheme.

SignIn(ClaimsPrincipal)

Creates aSignInResult.

SignOut()

Creates aSignOutResult.

SignOut(AuthenticationProperties, String[])

Creates aSignOutResult with the specified authentication schemes andproperties.

SignOut(AuthenticationProperties, String[])

Creates aSignOutResult with the specified specified authentication schemes andproperties.

SignOut(AuthenticationProperties)

Creates aSignOutResult withproperties.

SignOut(String[])

Creates aSignOutResult with the specified authentication schemes.

StatusCode(Int32, Object)

Creates anObjectResult object by specifying astatusCode andvalue

StatusCode(Int32)

Creates aStatusCodeResult object by specifying astatusCode.

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

Updates the specifiedmodel instance using thevalueProvider and aprefix.

TryUpdateModelAsync(Object, Type, String)

Updates the specifiedmodel instance using values from the controller's currentIValueProvider and aprefix.

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

Updates the specifiedmodel instance using values from the controller's currentIValueProvider and aprefix.

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

Updates the specifiedmodel instance using values from the controller's currentIValueProvider and aprefix.

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

Updates the specifiedmodel instance using thevalueProvider and aprefix.

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

Updates the specifiedmodel instance using thevalueProvider and aprefix.

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider)

Updates the specifiedmodel instance using thevalueProvider and aprefix.

TryUpdateModelAsync<TModel>(TModel, String)

Updates the specifiedmodel instance using values from the controller's currentIValueProvider and aprefix.

TryUpdateModelAsync<TModel>(TModel)

Updates the specifiedmodel instance using values from the controller's currentIValueProvider.

TryValidateModel(Object, String)

Validates the specifiedmodel instance.

TryValidateModel(Object)

Validates the specifiedmodel instance.

Unauthorized()

Creates anUnauthorizedResult that produces aStatus401Unauthorized response.

Unauthorized(Object)

Creates anUnauthorizedObjectResult that produces aStatus401Unauthorized response.

UnprocessableEntity()

Creates anUnprocessableEntityResult that produces aStatus422UnprocessableEntity response.

UnprocessableEntity(ModelStateDictionary)

Creates anUnprocessableEntityObjectResult that produces aStatus422UnprocessableEntity response.

UnprocessableEntity(Object)

Creates anUnprocessableEntityObjectResult that produces aStatus422UnprocessableEntity response.

ValidationProblem()

Creates anActionResult that produces aStatus400BadRequest responsewith validation errors fromModelState.

ValidationProblem(ModelStateDictionary)

Creates anActionResult that produces aStatus400BadRequest responsewith validation errors frommodelStateDictionary.

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

Creates anActionResult that produces aStatus400BadRequest responsewith aValidationProblemDetails value.

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

Creates anActionResult that produces aStatus400BadRequest responsewith aValidationProblemDetails value.

ValidationProblem(ValidationProblemDetails)

Creates aBadRequestObjectResult that produces aStatus400BadRequest response.

Applies to


Feedback

Was this page helpful?

YesNo

In this article

Was this page helpful?

YesNo