WebHttpElement.FaultExceptionEnabled Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the flag that specifies whether a FaultException is generated when an internal server error (HTTP status code: 500) occurs.

Namespace:   System.ServiceModel.Configuration
Assembly:  System.ServiceModel.Web (in System.ServiceModel.Web.dll)

public bool FaultExceptionEnabled { get; set; }

Property Value

Type: System.Boolean

Returns true if the flag is enabled; otherwise returns false.

.NET Framework
Available since 4.0
Return to top