Aracılığıyla paylaş


OutputCacheProfile.VaryByCustom Özellik

Tanım

Özelliğini alır veya ayarlar VaryByCustom .

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

Özellik Değeri

VaryByCustom değeri.

Öznitelikler

Örnekler

Aşağıdaki kod örneği özelliğinin VaryByCustom nasıl kullanılacağını gösterir.


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

Açıklamalar

, VaryByCustom özel çıkış önbelleğe alma gereksinimlerini temsil eden herhangi bir metin olabilir. Özel bir dize girilirse, uygulamanın Global.asax dosyasında yöntemini geçersiz kılmanız GetVaryByCustomString gerekir.

Not

VaryByCustom Ayarlar, yönergenin VaryByCustom özniteliği @ OutputCache tarafından kullanılanlarla aynıdır.

Şunlara uygulanır

Ayrıca bkz.