HttpWebRequest.MediaType 속성

정의

요청의 미디어 형식을 가져오거나 설정합니다.

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

속성 값

요청의 미디어 형식입니다. 기본값은 null입니다.

설명

속성 값은 MediaType 속성에 CharacterSet 영향을 줍니다. 요청에서 를 MediaType 설정하면 응답 Content-type HTTP 헤더에 반환된 문자 집합 목록에서 해당 미디어 형식이 선택됩니다.

적용 대상