Partager via


HttpActionContext.Response Property

Gets or sets the response message for the action context.

Namespace:  System.Web.Http.Controllers
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Property Response As HttpResponseMessage
    Get
    Set
'Usage
Dim instance As HttpActionContext
Dim value As HttpResponseMessage

value = instance.Response

instance.Response = value
public HttpResponseMessage Response { get; set; }
public:
property HttpResponseMessage^ Response {
    HttpResponseMessage^ get ();
    void set (HttpResponseMessage^ value);
}
member Response : HttpResponseMessage with get, set
function get Response () : HttpResponseMessage
function set Response (value : HttpResponseMessage)

Property Value

Type: HttpResponseMessage
The response message for the action context.

See Also

Reference

HttpActionContext Class

System.Web.Http.Controllers Namespace