Share via


HttpControllerSettings.Formatters Property

Gets the collection of MediaTypeFormatter instances for the controller.

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

Syntax

'Declaration
Public ReadOnly Property Formatters As MediaTypeFormatterCollection 
    Get
'Usage
Dim instance As HttpControllerSettings 
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
The collection of MediaTypeFormatter instances.

See Also

Reference

HttpControllerSettings Class

System.Web.Http.Controllers Namespace