Condividi tramite


FormatterMappings.SetMediaTypeMappingForFormat Metodo

Definizione

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