Aracılığıyla paylaş


OutputCacheProfile.NoStore Özellik

Tanım

İ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. Varsayılan değer false değeridir.

Ö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 sahip OutputCacheProfile.NoStoretrue olan sayfa, hassas bilgilerin ikincil olarak depolanmasını önlemek için üst bilgisinde belirtilen bir yanıt gönderir.

Bu özniteliğin olarak true ayarlanması, Bir Web isteği sırasında yöntemini çağırmaya HttpCachePolicy.SetNoStore eşdeğerdir.

Şunlara uygulanır

Ayrıca bkz.