MediaTypeWithQualityHeaderValue Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the MediaTypeWithQualityHeaderValue class.
Overloads
MediaTypeWithQualityHeaderValue(String) |
Initializes a new instance of the MediaTypeWithQualityHeaderValue class. |
MediaTypeWithQualityHeaderValue(String, Double) |
Initializes a new instance of the MediaTypeWithQualityHeaderValue class. |
MediaTypeWithQualityHeaderValue(String)
Initializes a new instance of the MediaTypeWithQualityHeaderValue class.
public:
MediaTypeWithQualityHeaderValue(System::String ^ mediaType);
public MediaTypeWithQualityHeaderValue (string mediaType);
new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue : string -> System.Net.Http.Headers.MediaTypeWithQualityHeaderValue
Public Sub New (mediaType As String)
Parameters
- mediaType
- String
A MediaTypeWithQualityHeaderValue represented as string to initialize the new instance.
Applies to
MediaTypeWithQualityHeaderValue(String, Double)
Initializes a new instance of the MediaTypeWithQualityHeaderValue class.
public:
MediaTypeWithQualityHeaderValue(System::String ^ mediaType, double quality);
public MediaTypeWithQualityHeaderValue (string mediaType, double quality);
new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue : string * double -> System.Net.Http.Headers.MediaTypeWithQualityHeaderValue
Public Sub New (mediaType As String, quality As Double)
Parameters
- mediaType
- String
A MediaTypeWithQualityHeaderValue represented as string to initialize the new instance.
- quality
- Double
The quality associated with this header value.