FormatterMappings.SetMediaTypeMappingForFormat Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
SetMediaTypeMappingForFormat(String, MediaTypeHeaderValue) |
Imposta il mapping del formato al tipo di supporto specificato. Se il formato esiste già, il tipo di supporto verrà sovrascritto con il nuovo valore. |
SetMediaTypeMappingForFormat(String, String) |
Imposta il mapping del formato al tipo di supporto specificato. Se il formato esiste già, il tipo di supporto verrà sovrascritto con il nuovo valore. |
SetMediaTypeMappingForFormat(String, MediaTypeHeaderValue)
- Origine:
- FormatterMappings.cs
- Origine:
- FormatterMappings.cs
- Origine:
- FormatterMappings.cs
Imposta il mapping del formato al tipo di supporto specificato. Se il formato esiste già, il tipo di supporto verrà sovrascritto con il nuovo valore.
public:
void SetMediaTypeMappingForFormat(System::String ^ format, Microsoft::Net::Http::Headers::MediaTypeHeaderValue ^ contentType);
public void SetMediaTypeMappingForFormat (string format, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType);
member this.SetMediaTypeMappingForFormat : string * Microsoft.Net.Http.Headers.MediaTypeHeaderValue -> unit
Public Sub SetMediaTypeMappingForFormat (format As String, contentType As MediaTypeHeaderValue)
Parametri
- format
- String
Valore di formato.
- contentType
- MediaTypeHeaderValue
Tipo di supporto per il valore di formato.
Si applica a
SetMediaTypeMappingForFormat(String, String)
- Origine:
- FormatterMappings.cs
- Origine:
- FormatterMappings.cs
- Origine:
- FormatterMappings.cs
Imposta il mapping del formato al tipo di supporto specificato. Se il formato esiste già, il tipo di supporto verrà sovrascritto con il nuovo valore.
public:
void SetMediaTypeMappingForFormat(System::String ^ format, System::String ^ contentType);
public void SetMediaTypeMappingForFormat (string format, string contentType);
member this.SetMediaTypeMappingForFormat : string * string -> unit
Public Sub SetMediaTypeMappingForFormat (format As String, contentType As String)
Parametri
- format
- String
Valore di formato.
- contentType
- String
Tipo di supporto per il valore di formato.
Si applica a
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per