Export (0) Print
Expand All

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.

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)

public class HttpRequestMessage<T> : HttpRequestMessage

Type Parameters

T

The type of object it contains as its content.

The HttpRequestMessage<T> type exposes the following members.

  NameDescription
Public methodHttpRequestMessage<T>() Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class.
Public methodHttpRequestMessage<T>(T) Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class.
Public methodHttpRequestMessage<T>(T, IEnumerable<MediaTypeFormatter>) Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class.
Public methodHttpRequestMessage<T>(T, MediaTypeHeaderValue) Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class.
Public methodHttpRequestMessage<T>(T, String) Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class.
Public methodHttpRequestMessage<T>(T, MediaTypeHeaderValue, IEnumerable<MediaTypeFormatter>) Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class.
Public methodHttpRequestMessage<T>(T, MediaTypeHeaderValue, IEnumerable<MediaTypeFormatter>, IFormatterSelector) Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class.
Public methodHttpRequestMessage<T>(T, HttpMethod, Uri, IEnumerable<MediaTypeFormatter>) Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class.
Top

  NameDescription
Public propertyContent Gets or sets the ObjectContent that manages the object value for this HttpRequestMessage.
Public propertyHeadersGets the collection of HTTP request headers. (Inherited from HttpRequestMessage.)
Public propertyMethodGets or sets the HTTP method used by the HTTP request message. (Inherited from HttpRequestMessage.)
Public propertyPropertiesGets a set of properties for the HTTP request. (Inherited from HttpRequestMessage.)
Public propertyRequestUriGets or sets the Uri used for the HTTP request. (Inherited from HttpRequestMessage.)
Public propertyVersionGets or sets the HTTP message version. (Inherited from HttpRequestMessage.)
Top

  NameDescription
Public methodDispose()Releases the unmanaged resources and disposes of the managed resources used by the HttpRequestMessage. (Inherited from HttpRequestMessage.)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the HttpRequestMessage and optionally disposes of the managed resources. (Inherited from HttpRequestMessage.)
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from HttpRequestMessage.)
Top

  NameDescription
Public Extension MethodCreateContent(Type, Object)Overloaded. Creates a new ObjectContent instance associated with the given HttpRequestMessage. (Defined by HttpRequestMessageExtensions.)
Public Extension MethodCreateContent(Type, Object, IEnumerable<MediaTypeFormatter>, IFormatterSelector)Overloaded. Creates a new ObjectContent instance associated with the given HttpRequestMessage. (Defined by HttpRequestMessageExtensions.)
Public Extension MethodCreateContent(Type, Object, MediaTypeHeaderValue, IEnumerable<MediaTypeFormatter>, IFormatterSelector)Overloaded. Creates a new ObjectContent instance associated with the given HttpRequestMessage. (Defined by HttpRequestMessageExtensions.)
Public Extension MethodCreateContent<T>(T)Overloaded. Creates a new ObjectContent instance associated with the given HttpRequestMessage. (Defined by HttpRequestMessageExtensions.)
Public Extension MethodCreateContent<T>(T, IEnumerable<MediaTypeFormatter>, IFormatterSelector)Overloaded. Creates a new ObjectContent instance associated with the given HttpRequestMessage. (Defined by HttpRequestMessageExtensions.)
Public Extension MethodCreateContent<T>(T, MediaTypeHeaderValue, IEnumerable<MediaTypeFormatter>, IFormatterSelector)Overloaded. Creates a new ObjectContent instance associated with the given HttpRequestMessage. (Defined by HttpRequestMessageExtensions.)
Public Extension MethodCreateResponse()Overloaded. Creates the HttpResponseMessage wired up to the associated HttpRequestMessage. (Defined by HttpRequestMessageCommonExtensions.)
Public Extension MethodCreateResponse(HttpStatusCode)Overloaded. Creates the HttpResponseMessage wired up to the associated HttpRequestMessage. (Defined by HttpRequestMessageCommonExtensions.)
Public Extension MethodGetConfigurationRetrieves the HttpConfiguration for the given request. (Defined by HttpRequestMessageExtensions.)
Public Extension MethodGetRouteDataRetrieves the IHttpRouteData for the given request or null if not available. (Defined by HttpRequestMessageExtensions.)
Public Extension MethodGetSynchronizationContextRetrieves the SynchronizationContext for the given request or null if not available. (Defined by HttpRequestMessageExtensions.)
Public Extension MethodGetUserPrincipalRetrieves the IPrincipal for the given request or null if not available. (Defined by HttpRequestMessageExtensions.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft