Partager via


MediaTypeFormatter.SupportedMediaTypes Property

Gets the mutable collection of media types supported bythis MediaTypeFormatter.

Namespace:  System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Syntax

'Declaration
Public Property SupportedMediaTypes As Collection(Of MediaTypeHeaderValue)
    Get
    Private Set
'Usage
Dim instance As MediaTypeFormatter
Dim value As Collection(Of MediaTypeHeaderValue)

value = instance.SupportedMediaTypes
public Collection<MediaTypeHeaderValue> SupportedMediaTypes { get; private set; }
public:
property Collection<MediaTypeHeaderValue^>^ SupportedMediaTypes {
    Collection<MediaTypeHeaderValue^>^ get ();
    private: void set (Collection<MediaTypeHeaderValue^>^ value);
}
member SupportedMediaTypes : Collection<MediaTypeHeaderValue> with get, private set
function get SupportedMediaTypes () : Collection<MediaTypeHeaderValue>
private function set SupportedMediaTypes (value : Collection<MediaTypeHeaderValue>)

Property Value

Type: System.Collections.ObjectModel.Collection<MediaTypeHeaderValue>
The collection of MediaTypeHeaderValue objects.

See Also

Reference

MediaTypeFormatter Class

System.Net.Http.Formatting Namespace