Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

MediaTypeFormatterCollection.FindWriter Method

Searches a collection for a formatter that can write the .NET type in the given mediaType.

Namespace:  System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
public MediaTypeFormatter FindWriter(
	Type type,
	MediaTypeHeaderValue mediaType


Type: System.Type

The .NET type to write.

Type: MediaTypeHeaderValue

The media type to match on.

Return Value

Type: System.Net.Http.Formatting.MediaTypeFormatter
The MediaTypeFormatter that can write the type, or null if no formatter found.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.