WorkflowServiceAttributes.IncludeExceptionDetailInFaults Właściwość

Definicja

Pobiera lub ustawia wartość określającą, że ogólne nieobsługiwane wyjątki wykonywania mają być konwertowane na FaultException typ ExceptionDetail i wysyłane jako komunikat o błędzie. Ustaw tę wartość true na wartość tylko podczas programowania, aby rozwiązać problemy z usługą.

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

Wartość właściwości

Boolean

true jeśli nieobsługiwane wyjątki mają być zwracane jako błędy protokołu SOAP; w przeciwnym razie , false.

Przykłady

W poniższym przykładzie pokazano, jak uzyskać dostęp IncludeExceptionDetailInFaults do właściwości.

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

Uwagi

Wartość domyślna to false.

Dotyczy