Share via

ServiceHostingEnvironment.AspNetCompatibilityEnabled Property


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

 static property bool AspNetCompatibilityEnabled { bool get(); };
public static bool AspNetCompatibilityEnabled { get; }
static member AspNetCompatibilityEnabled : bool
Public Shared ReadOnly Property AspNetCompatibilityEnabled As Boolean

Property Value

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


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

Applies to