MediaTypeHeaderValue Constructors

Definition

Overloads

MediaTypeHeaderValue(StringSegment)

Initializes a MediaTypeHeaderValue instance.

MediaTypeHeaderValue(String)
MediaTypeHeaderValue(StringSegment, Double)

Initializes a MediaTypeHeaderValue instance.

MediaTypeHeaderValue(String, Double)

MediaTypeHeaderValue(StringSegment)

Initializes a MediaTypeHeaderValue instance.

public:
 MediaTypeHeaderValue(Microsoft::Extensions::Primitives::StringSegment mediaType);
public MediaTypeHeaderValue (Microsoft.Extensions.Primitives.StringSegment mediaType);
new Microsoft.Net.Http.Headers.MediaTypeHeaderValue : Microsoft.Extensions.Primitives.StringSegment -> Microsoft.Net.Http.Headers.MediaTypeHeaderValue
Public Sub New (mediaType As StringSegment)

Parameters

mediaType
StringSegment

A StringSegment representation of a media type. The text provided must be a single media type without parameters.

Applies to

MediaTypeHeaderValue(String)

public:
 MediaTypeHeaderValue(System::String ^ mediaType);
public MediaTypeHeaderValue (string mediaType);
new Microsoft.Net.Http.Headers.MediaTypeHeaderValue : string -> Microsoft.Net.Http.Headers.MediaTypeHeaderValue
Public Sub New (mediaType As String)

Parameters

mediaType
String

Applies to

MediaTypeHeaderValue(StringSegment, Double)

Initializes a MediaTypeHeaderValue instance.

public:
 MediaTypeHeaderValue(Microsoft::Extensions::Primitives::StringSegment mediaType, double quality);
public MediaTypeHeaderValue (Microsoft.Extensions.Primitives.StringSegment mediaType, double quality);
new Microsoft.Net.Http.Headers.MediaTypeHeaderValue : Microsoft.Extensions.Primitives.StringSegment * double -> Microsoft.Net.Http.Headers.MediaTypeHeaderValue
Public Sub New (mediaType As StringSegment, quality As Double)

Parameters

mediaType
StringSegment

A StringSegment representation of a media type. The text provided must be a single media type without parameters.

quality
Double

The Double with the quality of the media type.

Applies to

MediaTypeHeaderValue(String, Double)

public:
 MediaTypeHeaderValue(System::String ^ mediaType, double quality);
public MediaTypeHeaderValue (string mediaType, double quality);
new Microsoft.Net.Http.Headers.MediaTypeHeaderValue : string * double -> Microsoft.Net.Http.Headers.MediaTypeHeaderValue
Public Sub New (mediaType As String, quality As Double)

Parameters

mediaType
String
quality
Double

Applies to