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

Boolean

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.

Şunlara uygulanır

Ayrıca bkz.