ServiceHostingEnvironmentSection.AspNetCompatibilityEnabled 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個布林值,指定目前應用程式是否啟用了 ASP.NET 相容模式。
public:
property bool AspNetCompatibilityEnabled { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("aspNetCompatibilityEnabled", DefaultValue=false)]
public bool AspNetCompatibilityEnabled { get; set; }
[<System.Configuration.ConfigurationProperty("aspNetCompatibilityEnabled", DefaultValue=false)>]
member this.AspNetCompatibilityEnabled : bool with get, set
Public Property AspNetCompatibilityEnabled As Boolean
屬性值
true 若目前應用程式已啟用 ASP.NET 相容模式;否則為 false。 預設值為 false。
- 屬性
備註
當此屬性設定為 true 時,對 Windows Communication Foundation(WCF)服務的請求會經過 ASP.NET HTTP 管線,且禁止透過非 HTTP 協定進行通訊。