ServiceHostingEnvironment.AspNetCompatibilityEnabled 属性

定义

获取一个值,该值指示此服务是否在 ASP.NET HTTP 应用程序管道的上下文中运行。

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

属性值

Boolean

如果为当前 AppDomain 启用了 ASP.NET 兼容性,则为 true;否则为 false。 默认值为 false

注解

此值反映配置元素设置的值 AspNetCompatibilityEnabled

适用于