OutputCacheProfile.NoStore Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of secundaire opslag is ingeschakeld.

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

Waarde van eigenschap

true als secundaire opslag is ingeschakeld; anders, false. De standaardwaarde is false.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de NoStore eigenschap gebruikt.


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

Opmerkingen

De pagina waarop de OutputCacheProfile.NoStore eigenschap is ingesteld om true een antwoord op te geven dat in de header wordt opgegeven om secundaire opslag van gevoelige informatie te voorkomen.

Het instellen van dit kenmerk true is gelijk aan het aanroepen van de HttpCachePolicy.SetNoStore methode tijdens een webaanvraag.

Van toepassing op

Zie ook