OutputCacheProfile.NoStore Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
İkincil depolamanın etkinleştirilip etkinleştirilmediğini belirten bir değer alır veya ayarlar.
public:
property bool NoStore { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("noStore", DefaultValue=false)]
public bool NoStore { get; set; }
[<System.Configuration.ConfigurationProperty("noStore", DefaultValue=false)>]
member this.NoStore : bool with get, set
Public Property NoStore As Boolean
Özellik Değeri
true
ikincil depolama etkinse; aksi takdirde , false
. false
varsayılan değerdir.
- Öznitelikler
Örnekler
Aşağıdaki kod örneği özelliğinin NoStore nasıl kullanılacağını gösterir.
// Get the current NoStore.
Boolean noStoreValue =
outputCacheProfile.NoStore;
// Set the NoStore.
outputCacheProfile.NoStore = false;
' Get the current NoStore.
Dim noStoreValue As [Boolean] = _
outputCacheProfile.NoStore
' Set the NoStore property.
outputCacheProfile.NoStore = False
Açıklamalar
özelliğine true
sahip OutputCacheProfile.NoStore olan sayfa, hassas bilgilerin ikincil olarak depolanmasını önlemek için üst bilgisinde belirten bir yanıt gönderir.
Bu özniteliği olarak true
ayarlamak, bir Web isteği sırasında yöntemini çağırmaya HttpCachePolicy.SetNoStore eşdeğerdir.