ContentTypeExtensions ToMediaFormat Method The WebApiClient Documentation
Gets the media format for the content type

Namespace: WebApiRestService
Assembly: WebApiClient (in WebApiClient.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static string ToMediaFormat(
	this ContentType contentType
)

Parameters

contentType
Type: WebApiRestService ContentType
The content type item

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ContentType. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also