Partager via


HttpConfiguration.Formatters Property

Gets the media-type formatters for this instance.

Namespace:  System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public ReadOnly Property Formatters As MediaTypeFormatterCollection
    Get
'Usage
Dim instance As HttpConfiguration
Dim value As MediaTypeFormatterCollection

value = instance.Formatters
public MediaTypeFormatterCollection Formatters { get; }
public:
property MediaTypeFormatterCollection^ Formatters {
    MediaTypeFormatterCollection^ get ();
}
member Formatters : MediaTypeFormatterCollection
function get Formatters () : MediaTypeFormatterCollection

Property Value

Type: System.Net.Http.Formatting.MediaTypeFormatterCollection
A collection of MediaTypeFormatter objects.

See Also

Reference

HttpConfiguration Class

System.Web.Http Namespace