HttpRequestMessage<T> Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Derived HttpRequestMessage class that contains a strongly typed object as its content.
Inheritance Hierarchy
System.Object
System.Net.Http.HttpRequestMessage
System.Net.Http.HttpRequestMessage<T>
Namespace: System.Net.Http
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public Class HttpRequestMessage(Of T) _
Inherits HttpRequestMessage
public class HttpRequestMessage<T> : HttpRequestMessage
generic<typename T>
public ref class HttpRequestMessage : public HttpRequestMessage
type HttpRequestMessage<'T> =
class
inherit HttpRequestMessage
end
JScript does not support generic types or methods.
Type Parameters
- T
The type of object it contains as its content.
The HttpRequestMessage<T> type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
HttpRequestMessage<T>() | Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class. |
![]() |
HttpRequestMessage<T>(T) | Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class. |
![]() |
HttpRequestMessage<T>(T, IEnumerable<MediaTypeFormatter>) | Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class. |
![]() |
HttpRequestMessage<T>(T, MediaTypeHeaderValue) | Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class. |
![]() |
HttpRequestMessage<T>(T, String) | Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class. |
![]() |
HttpRequestMessage<T>(T, MediaTypeHeaderValue, IEnumerable<MediaTypeFormatter>) | Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class. |
![]() |
HttpRequestMessage<T>(T, MediaTypeHeaderValue, IEnumerable<MediaTypeFormatter>, IFormatterSelector) | Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class. |
![]() |
HttpRequestMessage<T>(T, HttpMethod, Uri, IEnumerable<MediaTypeFormatter>) | Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
Content | Gets or sets the ObjectContent that manages the object value for this HttpRequestMessage. |
![]() |
Headers | Gets the collection of HTTP request headers. (Inherited from HttpRequestMessage.) |
![]() |
Method | Gets or sets the HTTP method used by the HTTP request message. (Inherited from HttpRequestMessage.) |
![]() |
Properties | Gets a set of properties for the HTTP request. (Inherited from HttpRequestMessage.) |
![]() |
RequestUri | Gets or sets the Uri used for the HTTP request. (Inherited from HttpRequestMessage.) |
![]() |
Version | Gets or sets the HTTP message version. (Inherited from HttpRequestMessage.) |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
Dispose() | Releases the unmanaged resources and disposes of the managed resources used by the HttpRequestMessage. (Inherited from HttpRequestMessage.) |
![]() |
Dispose(Boolean) | Releases the unmanaged resources used by the HttpRequestMessage and optionally disposes of the managed resources. (Inherited from HttpRequestMessage.) |
![]() |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from HttpRequestMessage.) |
Top
Extension Methods
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.gif)
.gif)
.gif)
.gif)