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 訊息。