OutputCacheProfile.VaryByCustom Eigenschap
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
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.