ControllerBase.Accepted Method

Definition

Overloads

Accepted()

Creates a AcceptedResult object that produces an Status202Accepted response.

Accepted(Object)

Creates a AcceptedResult object that produces an Status202Accepted response.

Accepted(String)

Creates a AcceptedResult object that produces an Status202Accepted response.

Accepted(Uri)

Creates a AcceptedResult object that produces an Status202Accepted response.

Accepted(String, Object)

Creates a AcceptedResult object that produces an Status202Accepted response.

Accepted(Uri, Object)

Creates a AcceptedResult object that produces an Status202Accepted response.

Accepted()

Creates a AcceptedResult object that produces an Status202Accepted response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted ();
Returns

The created AcceptedResult for the response.

Accepted(Object)

Creates a AcceptedResult object that produces an Status202Accepted response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted (object value);
Parameters
value
Object

The optional content value to format in the entity body; may be null.

Returns

The created AcceptedResult for the response.

Accepted(String)

Creates a AcceptedResult object that produces an Status202Accepted response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted (string uri);
Parameters
uri
String

The optional URI with the location at which the status of requested content can be monitored. May be null.

Returns

The created AcceptedResult for the response.

Accepted(Uri)

Creates a AcceptedResult object that produces an Status202Accepted response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted (Uri uri);
Parameters
uri
Uri

The optional URI with the location at which the status of requested content can be monitored. May be null.

Returns

The created AcceptedResult for the response.

Accepted(String, Object)

Creates a AcceptedResult object that produces an Status202Accepted response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted (string uri, object value);
Parameters
uri
String

The URI with the location at which the status of requested content can be monitored.

value
Object

The optional content value to format in the entity body; may be null.

Returns

The created AcceptedResult for the response.

Accepted(Uri, Object)

Creates a AcceptedResult object that produces an Status202Accepted response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted (Uri uri, object value);
Parameters
uri
Uri

The URI with the location at which the status of requested content can be monitored.

value
Object

The optional content value to format in the entity body; may be null.

Returns

The created AcceptedResult for the response.

Applies to