Share via


MediaType.CreateMediaTypeSegmentWithQuality(String, Int32) Method

Definition

Creates an MediaTypeSegmentWithQuality containing the media type in mediaType and its associated quality.

public:
 static Microsoft::AspNetCore::Mvc::Formatters::Internal::MediaTypeSegmentWithQuality CreateMediaTypeSegmentWithQuality(System::String ^ mediaType, int start);
public:
 static Microsoft::AspNetCore::Mvc::Formatters::MediaTypeSegmentWithQuality CreateMediaTypeSegmentWithQuality(System::String ^ mediaType, int start);
public static Microsoft.AspNetCore.Mvc.Formatters.Internal.MediaTypeSegmentWithQuality CreateMediaTypeSegmentWithQuality (string mediaType, int start);
public static Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality CreateMediaTypeSegmentWithQuality (string mediaType, int start);
static member CreateMediaTypeSegmentWithQuality : string * int -> Microsoft.AspNetCore.Mvc.Formatters.Internal.MediaTypeSegmentWithQuality
static member CreateMediaTypeSegmentWithQuality : string * int -> Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality
Public Shared Function CreateMediaTypeSegmentWithQuality (mediaType As String, start As Integer) As MediaTypeSegmentWithQuality

Parameters

mediaType
String

The media type to parse.

start
Int32

The position at which the parsing starts.

Returns

Microsoft.AspNetCore.Mvc.Formatters.Internal.MediaTypeSegmentWithQuality

The parsed media type with its associated quality.

Applies to