Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Initializes a new instance of the MediaRangeMapping class.
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public Sub New ( _
mediaRange As String, _
mediaType As String _
)
public MediaRangeMapping(
string mediaRange,
string mediaType
)
public:
MediaRangeMapping(
String^ mediaRange,
String^ mediaType
)
new :
mediaRange:string *
mediaType:string -> MediaRangeMapping
public function MediaRangeMapping(
mediaRange : String,
mediaType : String
)
Parameters
- mediaRange
Type: System.String
The description of the media range.
- mediaType
Type: System.String
The media type to return on a match.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.