Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Ruft eine Liste von Abfragezeichenfolgen oder Formular-POST-Parametern ab, die vom Ausgabecache zum Variieren des Benutzersteuerelements verwendet werden.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Syntax
'Declaration
Public ReadOnly Property VaryByParams As String
'Usage
Dim instance As PartialCachingAttribute
Dim value As String
value = instance.VaryByParams
public string VaryByParams { get; }
public:
property String^ VaryByParams {
String^ get ();
}
/** @property */
public String get_VaryByParams ()
public function get VaryByParams () : String
Eigenschaftenwert
Die Liste der Abfragezeichenfolgen oder Formular-POST-Parameter.
Beispiel
Im folgenden Codebeispiel wird eine Möglichkeit veranschaulicht, den PartialCachingAttribute(Int32,String,String,String)-Konstruktor auf ein Benutzersteuerelement anzuwenden. Im Beispiel wird mit dem Konstruktor angegeben, dass das Benutzersteuerelement zwischengespeichert werden kann, sowie der Parameter, von dem der Cacheeintrag abhängig ist.
' Set the PartialCachingAttribute.Duration property to
' 20 seconds and the PartialCachingAttribute.VaryByParams
' property to ctlSelect.country, the full name of the form
' POST parameter generated by the country DropDownList control.
<PartialCaching(20, "ctlSelect.country", Nothing, Nothing)> _
Public Class ctlSelect
Inherits UserControl
// Set the PartialCachingAttribute.Duration property to
// 20 seconds and the PartialCachingAttribute.VaryByParams
// property to ctlSelect.country, the full name of the form
// POST parameter generated by the country DropDownList control.
[PartialCaching(20, "ctlSelect.country", null, null)]
public partial class ctlSelect : UserControl
// Set the PartialCachingAttribute.Duration property to
// 20 seconds and the PartialCachingAttribute.VaryByParams
// property to ctlSelect.country, the full name of the form
// POST parameter generated by the country DropDownList control.
/** @attribute PartialCaching(20, "ctlSelect.country", null, null)
*/
Plattformen
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
PartialCachingAttribute-Klasse
PartialCachingAttribute-Member
System.Web.UI-Namespace