ServiceHostingEnvironmentSection.AspNetCompatibilityEnabled プロパティ

定義

現在のアプリケーション 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

プロパティ値

現在のアプリケーション<互換性モード ASP.NET 有効になっている場合は />、それ以外の場合は 。 既定値は false です。

属性

注釈

このプロパティを true に設定すると、Windows Communication Foundation (WCF) サービスへの要求は、ASP.NET HTTP パイプラインを通過し、非 HTTP プロトコル経由の通信は禁止されます。

適用対象