OutputCacheProfile.VaryByCustom Eigenschap

Definitie

Hiermee haalt u de eigenschap op of stelt u deze VaryByCustom in.

public:
 property System::String ^ VaryByCustom { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("varyByCustom")]
public string VaryByCustom { get; set; }
[<System.Configuration.ConfigurationProperty("varyByCustom")>]
member this.VaryByCustom : string with get, set
Public Property VaryByCustom As String

Waarde van eigenschap

De VaryByCustom-waarde.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de VaryByCustom eigenschap gebruikt.


// Get the current VaryByCustom.
String varyByCustomValue = 
    outputCacheProfile.VaryByCustom;

// Set the VaryByCustom.
outputCacheProfile.VaryByCustom = 
    string.Empty;
  ' Get the current VaryByCustom.
  Dim varyByCustomValue As String = _
  outputCacheProfile.VaryByCustom

  ' Set the VaryByCustom property.
  outputCacheProfile.VaryByCustom = _
  String.Empty

Opmerkingen

Dit VaryByCustom kan elke tekst zijn die aangepaste vereisten voor uitvoercache vertegenwoordigt. Als er een aangepaste tekenreeks wordt ingevoerd, moet u de GetVaryByCustomString methode in het bestand Global.asax van de toepassing overschrijven.

Note

De VaryByCustom instellingen zijn dezelfde instellingen die worden gebruikt door het VaryByCustom kenmerk van de @ OutputCache richtlijn.

Van toepassing op

Zie ook