Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
Mengambil informasi konfigurasi khusus aplikasi.
Sintaks
class IHttpApplication
Metode
Tabel berikut mencantumkan metode yang diekspos oleh IHttpApplication antarmuka.
| Nama | Deskripsi |
|---|---|
| GetAppConfigPath | Mengambil jalur konfigurasi aplikasi. |
| GetApplicationId | Mengambil jalur aplikasi identifikasi untuk permintaan saat ini. |
| GetApplicationPhysicalPath | Mengambil jalur fisik aplikasi untuk permintaan saat ini. |
| GetModuleContextContainer | Mengembalikan kontainer konteks modul untuk aplikasi. |
Kelas Turunan
| Nama | Deskripsi |
|---|---|
| IGlobalApplicationPreloadProvider2 | Menyediakan informasi tentang apakah proses pekerja aplikasi didaur ulang. |
Keterangan
Modul HTTP dapat menggunakan IHttpApplication antarmuka untuk mengambil informasi konfigurasi untuk aplikasi. Secara khusus, GetAppConfigPath metode mengembalikan jalur konfigurasi untuk aplikasi, GetApplicationId metode mengembalikan jalur identitas unik untuk aplikasi, dan GetApplicationPhysicalPath metode mengembalikan jalur fisik untuk folder akar aplikasi.
Modul HTTP dapat mengambil IHttpApplication antarmuka dengan menggunakan metode IGlobalThreadCleanupProvider::GetApplication, IHttpApplicationProvider::GetApplication, dan IHttpContext::GetApplication .
Persyaratan
| Jenis | Deskripsi |
|---|---|
| Klien | - IIS 7.0 di Windows Vista - IIS 7.5 di Windows 7 - IIS 8.0 di Windows 8 - IIS 10.0 pada Windows 10 |
| Server | - IIS 7.0 di Windows Server 2008 - IIS 7.5 di Windows Server 2008 R2 - IIS 8.0 di Windows Server 2012 - IIS 8.5 di Windows Server 2012 R2 - IIS 10.0 di Windows Server 2016 |
| Produk | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 - IIS Express 7.5, IIS Express 8.0, IIS Express 10.0 |
| Header | Httpserv.h |
Lihat juga
Antarmuka Inti Server Web
IGlobalThreadCleanupProvider::GetApplication
IHttpApplicationProvider::GetApplication Method
IHttpContext::GetApplication Method