次の方法で共有


HandleExceptionArgs.Exception プロパティ

処理されて応答として返される例外を取得または設定します。

名前空間:  System.Data.Services
アセンブリ:  Microsoft.Data.Services (Microsoft.Data.Services.dll)

構文

'宣言
Public Property Exception As Exception
    Get
    Set
'使用
Dim instance As HandleExceptionArgs
Dim value As Exception

value = instance.Exception

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

プロパティ値

型: System.Exception
処理されて応答として返される例外。

説明

例外が DataServiceException である場合は、UseVerboseErrors 値に関係なく常に、例外のメッセージがクライアントに返されます。 UseVerboseErrors が true の場合、内部例外もクライアントに返されます。それ以外の場合、DataServiceException メッセージのみが返されます。

関連項目

参照

HandleExceptionArgs クラス

System.Data.Services 名前空間