다음을 통해 공유


DataServiceRequestArgs.AcceptContentType 속성

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

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

구문

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

value = instance.AcceptContentType

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

속성 값

유형: System.String
Accept 헤더의 값입니다.

주의

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

참고 항목

참조

DataServiceRequestArgs 클래스

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