Share via


WorkflowServiceAttributes.IncludeExceptionDetailInFaults Proprietà

Definizione

Ottiene o imposta un valore che specifica che le eccezioni di esecuzione generiche non gestite devono essere convertite in una classe FaultException di tipo ExceptionDetail e inviate come messaggio di errore. Impostare questa proprietà su true solo durante la fase di sviluppo per la risoluzione dei problemi di un servizio.

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

Valore della proprietà

true se le eccezioni non gestite devono essere restituite come errori SOAP; in caso contrario, false.

Esempio

Nell'esempio seguente viene illustrato come accedere alla proprietà IncludeExceptionDetailInFaults.

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

Commenti

Il valore predefinito è false.

Si applica a