ObjectContent
Contains a value as well as an associated MediaTypeFormatter that will be used to serialize the value when writing this content.
Gets the media-type formatter associated with this content instance.
Gets the type of object managed by this ObjectContent instance.
Gets or sets the value of the content.
Initializes a new instance of the ObjectContent class.
Initializes a new instance of the ObjectContent class.
public ObjectContent(Type type, object value, MediaTypeFormatter formatter, MediaTypeHeaderValue mediaType)
Initializes a new instance of the ObjectContent class.