OutputCacheSection.EnableFragmentCache Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan atau menetapkan nilai yang menunjukkan apakah cache fragmen diaktifkan.
public:
property bool EnableFragmentCache { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enableFragmentCache", DefaultValue=true)]
public bool EnableFragmentCache { get; set; }
[<System.Configuration.ConfigurationProperty("enableFragmentCache", DefaultValue=true)>]
member this.EnableFragmentCache : bool with get, set
Public Property EnableFragmentCache As Boolean
Nilai Properti
true jika cache fragmen diaktifkan; jika tidak, false. Default adalah true.
- Atribut
Contoh
Contoh kode berikut menunjukkan cara menggunakan EnableFragmentCache properti .
// Get the current EnabledFragmentCache.
Boolean enabledFragmentCache =
outputCacheSection.EnableFragmentCache;
// Set the EnabledFragmentCache.
outputCacheSection.EnableFragmentCache = false;
' Get the current EnabledFragmentCache.
Dim enabledFragmentCache As [Boolean] = _
outputCacheSection.EnableFragmentCache
' Set the EnabledFragmentCache.
outputCacheSection.EnableFragmentCache = False
Keterangan
EnableFragmentCache Jika properti diatur ke false, tidak ada output kontrol pengguna yang di-cache, terlepas dari @ OutputCache direktif atau profil penembolokan yang digunakan. Untuk informasi lebih lanjut, lihat OutputCacheSettingsSection dan OutputCacheProfile.