HttpResponse.TrySkipIisCustomErrors 属性

定义

获取或设置指定是否禁用 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

属性值

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 属性的默认值为 trueWhen running in Classic mode, the TrySkipIisCustomErrors property default value is true. 在集成模式下运行时, TrySkipIisCustomErrors 属性的默认值为 falseWhen running in Integrated mode, the TrySkipIisCustomErrors property default value is false.

适用于