共用方式為


DataServiceConfiguration.UseVerboseErrors 屬性

定義

取得或設定資料服務是否應該回傳冗長錯誤。

public:
 property bool UseVerboseErrors { bool get(); void set(bool value); };
public bool UseVerboseErrors { get; set; }
member this.UseVerboseErrors : bool with get, set
Public Property UseVerboseErrors As Boolean

屬性值

是否會回傳冗長錯誤。

實作

備註

這個 UseVerboseErrors 屬性設定了整個服務的預設冗長錯誤行為。 個別回應的行為會因類別中方法參數HandleExceptionDataService<T>屬性的值UseVerboseErrors而有所不同。

出於安全考量,冗長錯誤應僅在開發階段啟用,而非在生產環境中啟用,

適用於

另請參閱