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 MediaTypeHeaderValue, _
mediaType As MediaTypeHeaderValue _
)
public MediaRangeMapping(
MediaTypeHeaderValue mediaRange,
MediaTypeHeaderValue mediaType
)
public:
MediaRangeMapping(
MediaTypeHeaderValue^ mediaRange,
MediaTypeHeaderValue^ mediaType
)
new :
mediaRange:MediaTypeHeaderValue *
mediaType:MediaTypeHeaderValue -> MediaRangeMapping
public function MediaRangeMapping(
mediaRange : MediaTypeHeaderValue,
mediaType : MediaTypeHeaderValue
)
Parameters
- mediaRange
Type: System.Net.Http.Headers.MediaTypeHeaderValue
The MediaTypeHeaderValue that provides a description of the media range.
- mediaType
Type: System.Net.Http.Headers.MediaTypeHeaderValue
The MediaTypeHeaderValue 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.