다음을 통해 공유


WebHttpBehavior.FaultExceptionEnabled Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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.Description
Assembly:  System.ServiceModel.Web.Extensions (in System.ServiceModel.Web.Extensions.dll)

Syntax

'Declaration
Public Overridable Property FaultExceptionEnabled As Boolean
public virtual bool FaultExceptionEnabled { get; set; }

Property Value

Type: System.Boolean
Returns true if the flag is enabled; otherwise returns false.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.