Partager via


MediaTypeFormatter.MediaTypeMappings Property

Gets the mutable collection of MediaTypeMapping objects that match HTTP requests to media types.

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

Syntax

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

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

Property Value

Type: System.Collections.ObjectModel.Collection<MediaTypeMapping>
The MediaTypeMapping collection.

See Also

Reference

MediaTypeFormatter Class

System.Net.Http.Formatting Namespace