HttpWebRequest.MediaType Свойство
Определение
Возвращает или задает формат носителя запроса.Gets or sets the media type of the request.
public:
property System::String ^ MediaType { System::String ^ get(); void set(System::String ^ value); };
public string MediaType { get; set; }
member this.MediaType : string with get, set
Public Property MediaType As String
Значение свойства
Формат носителя запроса.The media type of the request. Значение по умолчанию — null
.The default value is null
.
Комментарии
Значение MediaType свойства влияет на CharacterSet свойство.The value of the MediaType property affects the CharacterSet property. При задании MediaType в запросе соответствующий тип носителя выбирается из списка наборов символов, возвращаемых в Content-type
HTTP-заголовке ответа.When you set the MediaType in the request, the corresponding media type is chosen from the list of character sets returned in the response Content-type
HTTP header.