Partager via


MediaType Constructeurs

Définition

Surcharges

MediaType(StringSegment)

Initialise une instance MediaType.

MediaType(String)

Initialise une instance MediaType.

MediaType(String, Int32, Nullable<Int32>)

Initialise une instance Microsoft.AspNetCore.Mvc.Formatters.MediaType.MediaTypeParameterParser.

MediaType(StringSegment)

Source:
MediaType.cs
Source:
MediaType.cs
Source:
MediaType.cs

Initialise une instance MediaType.

public:
 MediaType(Microsoft::Extensions::Primitives::StringSegment mediaType);
public MediaType (Microsoft.Extensions.Primitives.StringSegment mediaType);
new Microsoft.AspNetCore.Mvc.Formatters.MediaType : Microsoft.Extensions.Primitives.StringSegment -> Microsoft.AspNetCore.Mvc.Formatters.MediaType
Public Sub New (mediaType As StringSegment)

Paramètres

mediaType
StringSegment

StringSegment avec le type de média.

S’applique à

MediaType(String)

Source:
MediaType.cs
Source:
MediaType.cs
Source:
MediaType.cs

Initialise une instance MediaType.

public:
 MediaType(System::String ^ mediaType);
public MediaType (string mediaType);
new Microsoft.AspNetCore.Mvc.Formatters.MediaType : string -> Microsoft.AspNetCore.Mvc.Formatters.MediaType
Public Sub New (mediaType As String)

Paramètres

mediaType
String

String avec le type de média.

S’applique à

MediaType(String, Int32, Nullable<Int32>)

Source:
MediaType.cs
Source:
MediaType.cs
Source:
MediaType.cs

Initialise une instance Microsoft.AspNetCore.Mvc.Formatters.MediaType.MediaTypeParameterParser.

public:
 MediaType(System::String ^ mediaType, int offset, Nullable<int> length);
public MediaType (string mediaType, int offset, int? length);
new Microsoft.AspNetCore.Mvc.Formatters.MediaType : string * int * Nullable<int> -> Microsoft.AspNetCore.Mvc.Formatters.MediaType
Public Sub New (mediaType As String, offset As Integer, length As Nullable(Of Integer))

Paramètres

mediaType
String

String avec le type de média.

offset
Int32

Décalage dans l’endroit mediaType où l’analyse commence.

length
Nullable<Int32>

Longueur du type de média à analyser s’il est fourni.

S’applique à