Freigeben über


OutputCacheProfile.NoStore Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines Werts, der angibt, ob sekundärer Speicher aktiviert ist.

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

Eigenschaftswert

truewenn sekundärer Speicher aktiviert ist; andernfalls . false Der Standardwert ist false.

Attribute

Beispiele

Das folgende Codebeispiel zeigt, wie die NoStore Eigenschaft verwendet wird.


// 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

Hinweise

Die Seite, auf die die Eigenschaft festgelegt ist, true gibt eine Antwort aus, die OutputCacheProfile.NoStore in der Kopfzeile angibt, um die sekundäre Speicherung vertraulicher Informationen zu verhindern.

Das Festlegen dieses Attributs true entspricht dem Aufrufen der HttpCachePolicy.SetNoStore Methode während einer Webanforderung.

Gilt für:

Weitere Informationen