HttpContextWrapper.IsCustomErrorEnabled 属性

定义

获取一个值,该值指示是否已为当前 HTTP 请求启用自定义错误。Gets a value that indicates whether custom errors are enabled for the current HTTP request.

public:
 virtual property bool IsCustomErrorEnabled { bool get(); };
public override bool IsCustomErrorEnabled { get; }
member this.IsCustomErrorEnabled : bool
Public Overrides ReadOnly Property IsCustomErrorEnabled As Boolean

属性值

Boolean

如果启用了自定义错误,则为 true;否则,为 falsetrue if custom errors are enabled; otherwise, false.

适用于