WorkflowServiceAttributes.IncludeExceptionDetailInFaults 屬性

定義

取得或設定值,指定一般未處理的執行例外狀況 (要轉換為型別 FaultExceptionExceptionDetail),並傳送為錯誤訊息。 請只在開發期間將這個項目設定為 true,以針對服務進行疑難排解。

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

屬性值

Boolean

如果未處理的例外狀況要當做 SOAP 錯誤傳回,則為 true,否則為 false

範例

下列範例將示範如何存取 IncludeExceptionDetailInFaults 屬性。

WorkflowServiceAttributes attributes = new WorkflowServiceAttributes();
attributes.IncludeExceptionDetailInFaults = true;
Dim attributes As New WorkflowServiceAttributes()
attributes.IncludeExceptionDetailInFaults = True

備註

預設值是 false

適用於