WebHttpBehavior.FaultExceptionEnabled 属性
定义
获取或设置用于指定在发生内部服务器错误(HTTP 状态代码:500)时是否生成 FaultException 的标志。Gets or sets the flag that specifies whether a FaultException is generated when an internal server error (HTTP status code: 500) occurs.
public:
virtual property bool FaultExceptionEnabled { bool get(); void set(bool value); };
public virtual bool FaultExceptionEnabled { get; set; }
member this.FaultExceptionEnabled : bool with get, set
Public Overridable Property FaultExceptionEnabled As Boolean
属性值
如果启用该标志,则返回 true;否则返回 false。Returns true if the flag is enabled; otherwise returns false.