Share via


OutputCacheProfile.VaryByControl Eigenschaft

Definition

Ruft die VaryByControl-Eigenschaft ab oder legt diese fest.

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

Eigenschaftswert

Der VaryByControl-Wert.

Attribute

Beispiele

Im folgenden Codebeispiel wird die Verwendung der VaryByControl-Eigenschaft veranschaulicht.


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

Hinweise

Ist VaryByControl eine durch Semikolons getrennte Gruppe von IDs von Steuerelementen, die zwischengespeichert werden sollen.

Weitere Informationen finden Sie unter Zwischenspeichern mehrerer Versionen der Ausgabe der Benutzersteuerung.

Hinweis

Die VaryByControl Einstellungen sind die gleichen, die vom VaryByControl -Attribut der @ OutputCache -Anweisung verwendet werden.

Gilt für:

Weitere Informationen