HttpResponse.TrySkipIisCustomErrors HttpResponse.TrySkipIisCustomErrors HttpResponse.TrySkipIisCustomErrors HttpResponse.TrySkipIisCustomErrors Property

定义

获取或设置一个值,该值指定是否禁用 IIS 7.0IIS 7.0 自定义错误。Gets or sets a value that specifies whether IIS 7.0IIS 7.0 custom errors are disabled.

public:
 property bool TrySkipIisCustomErrors { bool get(); void set(bool value); };
public bool TrySkipIisCustomErrors { get; set; }
member this.TrySkipIisCustomErrors : bool with get, set
Public Property TrySkipIisCustomErrors As Boolean

属性值

如果禁用 IIS 自定义错误,则为 true;否则为 falsetrue to disable IIS custom errors; otherwise, false.

注解

TrySkipIisCustomErrors当你的应用程序托管在 IIS 7.0 和更高版本中时,才使用此属性。The TrySkipIisCustomErrors property is used only when your application is hosted in IIS 7.0 and later. 在经典模式下运行时, TrySkipIisCustomErrors属性的默认值true为。When running in Classic mode, the TrySkipIisCustomErrors property default value is true. 在集成模式下运行时, TrySkipIisCustomErrors属性的默认值false为。When running in Integrated mode, the TrySkipIisCustomErrors property default value is false.

适用于