MediaTypeHeaderValue 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 MediaTypeHeaderValue class.
Overloads
MediaTypeHeaderValue(MediaTypeHeaderValue) |
Initializes a new instance of the MediaTypeHeaderValue class. |
MediaTypeHeaderValue(String) |
Initializes a new instance of the MediaTypeHeaderValue class. |
MediaTypeHeaderValue(String, String) |
Initializes a new instance of the MediaTypeHeaderValue class. |
MediaTypeHeaderValue(MediaTypeHeaderValue)
- Source:
- MediaTypeHeaderValue.cs
- Source:
- MediaTypeHeaderValue.cs
- Source:
- MediaTypeHeaderValue.cs
Initializes a new instance of the MediaTypeHeaderValue class.
protected:
MediaTypeHeaderValue(System::Net::Http::Headers::MediaTypeHeaderValue ^ source);
protected MediaTypeHeaderValue (System.Net.Http.Headers.MediaTypeHeaderValue source);
new System.Net.Http.Headers.MediaTypeHeaderValue : System.Net.Http.Headers.MediaTypeHeaderValue -> System.Net.Http.Headers.MediaTypeHeaderValue
Protected Sub New (source As MediaTypeHeaderValue)
Parameters
- source
- MediaTypeHeaderValue
A MediaTypeHeaderValue object used to initialize the new instance.
Applies to
MediaTypeHeaderValue(String)
- Source:
- MediaTypeHeaderValue.cs
- Source:
- MediaTypeHeaderValue.cs
- Source:
- MediaTypeHeaderValue.cs
Initializes a new instance of the MediaTypeHeaderValue class.
public:
MediaTypeHeaderValue(System::String ^ mediaType);
public MediaTypeHeaderValue (string mediaType);
new System.Net.Http.Headers.MediaTypeHeaderValue : string -> System.Net.Http.Headers.MediaTypeHeaderValue
Public Sub New (mediaType As String)
Parameters
- mediaType
- String
The source represented as a string to initialize the new instance.
Applies to
MediaTypeHeaderValue(String, String)
- Source:
- MediaTypeHeaderValue.cs
- Source:
- MediaTypeHeaderValue.cs
- Source:
- MediaTypeHeaderValue.cs
Initializes a new instance of the MediaTypeHeaderValue class.
public:
MediaTypeHeaderValue(System::String ^ mediaType, System::String ^ charSet);
public MediaTypeHeaderValue (string mediaType, string? charSet);
new System.Net.Http.Headers.MediaTypeHeaderValue : string * string -> System.Net.Http.Headers.MediaTypeHeaderValue
Public Sub New (mediaType As String, charSet As String)
Parameters
- mediaType
- String
The source represented as a string to initialize the new instance.
- charSet
- String
The value to use for the character set.