Partilhar via


ODataMessageWriterSettings.SetContentType Method

Include Protected Members
Include Inherited Members

Sets the format to be used when writing the payload. This will automatically set a compatible content type header.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method SetContentType(ODataFormat) Sets the format to be used when writing the payload. This will automatically set a compatible content type header.
Public method SetContentType(String, String) Sets the acceptable media types and character sets from which the content type will be computed when writing the payload.

Top

See Also

Reference

ODataMessageWriterSettings Class

Microsoft.Data.OData Namespace