다음을 통해 공유


DataServiceRequestArgs.ContentType 속성

요청 메시지의 Content-Type 헤더를 가져오거나 설정합니다.

네임스페이스:  System.Data.Services.Client
어셈블리:  Microsoft.Data.Services.Client(Microsoft.Data.Services.Client.dll)

구문

‘선언
Public Property ContentType As String
    Get
    Set
‘사용 방법
Dim instance As DataServiceRequestArgs
Dim value As String

value = instance.ContentType

instance.ContentType = value
public string ContentType { get; set; }
public:
property String^ ContentType {
    String^ get ();
    void set (String^ value);
}
member ContentType : string with get, set
function get ContentType () : String
function set ContentType (value : String)

속성 값

유형: System.String
Content-Type 헤더의 값입니다.

주의

ContentType 속성 값에 대해서는 유효성 검사가 수행되지 않습니다. 따라서 제공된 값이 HTTP Content-Type 헤더에 대한 유효한 값인지 확인해야 합니다.

참고 항목

참조

DataServiceRequestArgs 클래스

System.Data.Services.Client 네임스페이스