Class NotFoundResult
Represents an action result that returns an empty NotFound response.
public class NotFoundResult : IHttpActionResult
- Inheritance
-
NotFoundResult
- Implements
- Inherited Members
Constructors
NotFoundResult(HttpRequestMessage)
Initializes a new instance of the NotFoundResult class.
public NotFoundResult(HttpRequestMessage request)
Parameters
request
HttpRequestMessageThe request message which led to this result.
NotFoundResult(ApiController)
Initializes a new instance of the NotFoundResult class.
public NotFoundResult(ApiController controller)
Parameters
controller
ApiControllerThe controller from which to obtain the dependencies needed for execution.
Properties
Request
Gets the request message which led to this result.
public HttpRequestMessage Request { get; }
Property Value
Methods
ExecuteAsync(CancellationToken)
public virtual Task<HttpResponseMessage> ExecuteAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationToken