語言

JsonRpc.ExceptionStrategy 屬性

定義

取得或設定一個值,指示 RPC 伺服器拋出的例外是否應該被完全序列化,讓 RPC 用戶端進行反序列化。

public StreamJsonRpc.ExceptionProcessing ExceptionStrategy { get; set; }
member this.ExceptionStrategy : StreamJsonRpc.ExceptionProcessing with get, set
Public Property ExceptionStrategy As ExceptionProcessing

屬性值

預設值為 CommonErrorData。

備註

此設定影響了錯誤處理虛擬方法在本類別上的實作。 當這些方法被導出型別覆寫時,此特性可能對行為產生不同或完全不影響。 這不會改變拋出時的行為, LocalRpcException 因為該例外類型直接提供錯誤回應的所有細節。

適用於