Επεξεργασία

Κοινή χρήση μέσω


WorkflowServiceAttributes.IncludeExceptionDetailInFaults Property

Definition

Gets or sets a value that specifies that general unhandled execution exceptions are to be converted into a FaultException of type ExceptionDetail and sent as a fault message. Set this to true only during development to troubleshoot a service.

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

Property Value

true if unhandled exceptions are to be returned as SOAP faults; otherwise, false.

Examples

The following example demonstrates how to access the IncludeExceptionDetailInFaults property.

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

Remarks

The default value is false.

Applies to