语言

WebHttpEndpointElement.FaultExceptionEnabled 属性

定义

获取或设置一个标志,该标志指定在内部服务器错误(HTTP 状态代码:500)发生时是否生成 FaultException。

public:
 property bool FaultExceptionEnabled { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("faultExceptionEnabled", DefaultValue=false)]
public bool FaultExceptionEnabled { get; set; }
[<System.Configuration.ConfigurationProperty("faultExceptionEnabled", DefaultValue=false)>]
member this.FaultExceptionEnabled : bool with get, set
Public Property FaultExceptionEnabled As Boolean

属性值

true如果启用标志,则返回;否则返回 false。

属性

适用于