OutputCacheProfile.VaryByControl Eigenschap

Definitie

Hiermee haalt u de eigenschap op of stelt u deze VaryByControl in.

public:
 property System::String ^ VaryByControl { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("varyByControl")]
public string VaryByControl { get; set; }
[<System.Configuration.ConfigurationProperty("varyByControl")>]
member this.VaryByControl : string with get, set
Public Property VaryByControl As String

Waarde van eigenschap

De VaryByControl-waarde.

Kenmerken

Voorbeelden

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


// Get the current VaryByControl.
String varyByControlValue = 
    outputCacheProfile.VaryByControl;

// Set the VaryByControl.
outputCacheProfile.VaryByControl = 
    string.Empty;
  ' Get the current VaryByControl.
  Dim varyByControlValue As String = _
  outputCacheProfile.VaryByControl

  ' Set the VaryByControl.
  outputCacheProfile.VaryByControl = _
  String.Empty

Opmerkingen

Het VaryByControl is een door puntkomma's gescheiden set id's van besturingselementen die in de cache moeten worden opgeslagen.

Zie Meerdere versies van uitvoer van gebruikersbeheer in de cache opslaan voor meer informatie.

Note

De VaryByControl instellingen zijn dezelfde instellingen die worden gebruikt door het VaryByControl kenmerk van de @ OutputCache richtlijn.

Van toepassing op

Zie ook