Bagikan melalui


ServiceHostingEnvironmentSection.AspNetCompatibilityEnabled Properti

Definisi

Mendapatkan atau menetapkan nilai Boolean yang menentukan apakah mode kompatibilitas ASP.NET telah diaktifkan untuk aplikasi saat ini.

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

Nilai Properti

true jika mode kompatibilitas ASP.NET telah diaktifkan untuk aplikasi saat ini; jika tidak, false. Defaultnya adalah false.

Atribut

Keterangan

Ketika properti ini diatur ke true, permintaan ke layanan Windows Communication Foundation (WCF) mengalir melalui alur HTTP ASP.NET dan komunikasi melalui protokol non-HTTP dilarang.

Berlaku untuk