HttpContext.IsCustomErrorEnabled 属性

定义

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

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

属性值

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

适用于