FormatterMappings.SetMediaTypeMappingForFormat Metoda

Definicja

Przeciążenia

SetMediaTypeMappingForFormat(String, MediaTypeHeaderValue)

Ustawia mapowanie formatu na określony typ nośnika. Jeśli format już istnieje, typ nośnika zostanie zastąpiony nową wartością.

SetMediaTypeMappingForFormat(String, String)

Ustawia mapowanie formatu na określony typ nośnika. Jeśli format już istnieje, typ nośnika zostanie zastąpiony nową wartością.

SetMediaTypeMappingForFormat(String, MediaTypeHeaderValue)

Źródło:
FormatterMappings.cs
Źródło:
FormatterMappings.cs

Ustawia mapowanie formatu na określony typ nośnika. Jeśli format już istnieje, typ nośnika zostanie zastąpiony nową wartością.

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)

Parametry

format
String

Wartość formatu.

contentType
MediaTypeHeaderValue

Typ nośnika dla wartości formatu.

Dotyczy

SetMediaTypeMappingForFormat(String, String)

Źródło:
FormatterMappings.cs
Źródło:
FormatterMappings.cs

Ustawia mapowanie formatu na określony typ nośnika. Jeśli format już istnieje, typ nośnika zostanie zastąpiony nową wartością.

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)

Parametry

format
String

Wartość formatu.

contentType
String

Typ nośnika dla wartości formatu.

Dotyczy