Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ObjectContent Constructor (Type, Object, MediaTypeFormatter)

Initializes a new instance of the ObjectContent class.

Namespace:  System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

public ObjectContent(
	Type type,
	Object value,
	MediaTypeFormatter formatter
)

Parameters

type
Type: System.Type
The type of object this instance will contain.
value
Type: System.Object
The value of the object this instance will contain.
formatter
Type: System.Net.Http.Formatting.MediaTypeFormatter
The formatter to use when serializing the value.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft