Share via


WorkflowServiceAttributes.IncludeExceptionDetailInFaults プロパティ

定義

一般的な未処理の実行例外を FaultException 型の ExceptionDetail に変換してエラー メッセージとして送信するように指定する値を取得または設定します。 この属性は、開発時にサービスのトラブルシューティングを行う場合にのみ、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

プロパティ値

未処理の例外を SOAP エラーとして返す場合は true、それ以外の場合は false

次の例は、IncludeExceptionDetailInFaults プロパティのアクセス方法を示しています。

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

注釈

既定値は false です。

適用対象