HttpResponseMessage Constructors
Definition
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.
Overloads
HttpResponseMessage() |
Initializes a new instance of the HttpResponseMessage class. |
HttpResponseMessage(HttpStatusCode) |
Initializes a new instance of the HttpResponseMessage class with a specific HttpStatusCode. |
HttpResponseMessage()
Initializes a new instance of the HttpResponseMessage class.
public:
HttpResponseMessage();
HttpResponseMessage();
public HttpResponseMessage();
function HttpResponseMessage()
Public Sub New ()
See also
Applies to
HttpResponseMessage(HttpStatusCode)
Initializes a new instance of the HttpResponseMessage class with a specific HttpStatusCode.
public:
HttpResponseMessage(HttpStatusCode statusCode);
HttpResponseMessage(HttpStatusCode const& statusCode);
public HttpResponseMessage(HttpStatusCode statusCode);
function HttpResponseMessage(statusCode)
Public Sub New (statusCode As HttpStatusCode)
Parameters
- statusCode
- HttpStatusCode
The status code of the HTTP response.
See also
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for