MediaTypeHeaderValue.MediaType Właściwość

Definicja

Pobiera lub ustawia wartość nagłówka typu nośnika.

public:
 property System::String ^ MediaType { System::String ^ get(); void set(System::String ^ value); };
public string MediaType { get; set; }
public string? MediaType { get; set; }
member this.MediaType : string with get, set
Public Property MediaType As String

Wartość właściwości

Wartość nagłówka typu nośnika.

Uwagi

Typ nośnika jest używany w polach Content-Type (Typ zawartości) i Accept (Akceptuj) w celu zapewnienia otwartego i rozszerzalnego wpisywania i negocjowania typów danych.

Dotyczy