Delen via


ControllerBase.NoContent Method

Definition

Creates a NoContentResult object that produces an empty Status204NoContent response.

public:
 virtual Microsoft::AspNetCore::Mvc::NoContentResult ^ NoContent();
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.NoContentResult NoContent ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member NoContent : unit -> Microsoft.AspNetCore.Mvc.NoContentResult
override this.NoContent : unit -> Microsoft.AspNetCore.Mvc.NoContentResult
Public Overridable Function NoContent () As NoContentResult

Returns

The created NoContentResult object for the response.

Attributes

Applies to