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

String

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

Dies VaryByControl ist ein durch Semikolons getrennter Satz von IDs von Steuerelementen, die zwischengespeichert werden sollen.

Weitere Informationen finden Sie unter Zwischenspeichern mehrerer Versionen der Benutzersteuerungsausgabe.

Hinweis

Die VaryByControl Einstellungen sind dieselben, die vom VaryByControl Attribut der @ OutputCache Direktive verwendet werden.

Gilt für:

Siehe auch