MediaType Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
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
- offset
- Int32
Décalage dans l’endroit mediaType
où l’analyse commence.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour