PartialCachingAttribute.VaryByParams Eigenschap

Definitie

Hiermee haalt u een lijst met queryreeks- of formulierparameters POST op die door de uitvoercache worden gebruikt om het gebruikersbesturingselement te variëren.

public:
 property System::String ^ VaryByParams { System::String ^ get(); };
public:
 property System::String ^ VaryByParams { System::String ^ get(); void set(System::String ^ value); };
public string VaryByParams { get; }
public string VaryByParams { get; set; }
member this.VaryByParams : string
member this.VaryByParams : string with get, set
Public ReadOnly Property VaryByParams As String
Public Property VaryByParams As String

Waarde van eigenschap

De lijst met queryreeks- of formulierparameters POST .

Voorbeelden

In het volgende codevoorbeeld ziet u hoe de PartialCachingAttribute(Int32, String, String, String) constructor kan worden toegepast op een gebruikersbeheer. In het voorbeeld wordt de constructor gebruikt om aan te geven dat het gebruikersbesturingselement in de cache kan worden opgeslagen en om de parameter op te geven waarop de cachevermelding afhankelijk is.

// 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.
<PartialCaching(20, "ctlSelect.country", Nothing, Nothing)> _
Public Class ctlSelect
    Inherits UserControl

Van toepassing op