Freigeben über


OutputCacheProfile.VaryByControl Eigenschaft

Definition

Dient zum Abrufen oder Festlegen der VaryByControl Eigenschaft.

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

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


// 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 VaryByControl vom Attribut der @ OutputCache Direktive verwendet werden.

Gilt für:

Weitere Informationen