OutputCacheProfile.VaryByControl Egenskap

Definition

Hämtar eller anger egenskapen VaryByControl .

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

Egenskapsvärde

Värdet VaryByControl.

Attribut

Exempel

Följande kodexempel visar hur du använder egenskapen VaryByControl .


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

Kommentarer

VaryByControl är en semikolonavgränsad uppsättning ID:n för kontroller som ska cachelagras.

Mer information finns i Cachelagra flera versioner av utdata för användarkontroll.

Note

VaryByControl Inställningarna är samma som används av VaryByControl direktivets @ OutputCache attribut.

Gäller för

Se även