共用方式為


HandleExceptionArgs.ResponseContentType 屬性

取得回應內容類型。

命名空間:  System.Data.Services
組件:  Microsoft.Data.Services (在 Microsoft.Data.Services.dll 中)

語法

'宣告
Public Property ResponseContentType As String
    Get
    Private Set
'用途
Dim instance As HandleExceptionArgs
Dim value As String

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

屬性值

型別:System.String
表示回應格式的字串值。

備註

所有錯誤都導致從服務傳回錯誤裝載。 此屬性會通知服務作者,將傳回錯誤的格式。 此屬性的值將永遠是有效的網際網路位址分配機構 (IANA) mime 類型。

請參閱

參考

HandleExceptionArgs 類別

System.Data.Services 命名空間