Прочетете на английски Редактиране

Споделяне чрез


ServiceHostingEnvironment.AspNetCompatibilityEnabled Property

Definition

Gets a value that indicates whether this service is running in the context of the ASP.NET HTTP application pipeline.

C#
public static bool AspNetCompatibilityEnabled { get; }

Property Value

true if ASP.NET compatibility is enabled for the current AppDomain; otherwise, false. The default is false.

Remarks

This value reflects the value set by the AspNetCompatibilityEnabled configuration element.

Applies to

Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1