Bagikan melalui


OutputCacheParameters.VaryByCustom Properti

Definisi

Mendapatkan daftar string kustom yang digunakan cache output untuk memvariasikan entri cache.

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

Nilai Properti

Daftar string kustom.

Keterangan

Jika Anda menentukan "browser" untuk properti ini, entri cache akan bervariasi menurut jenis browser dan nomor versi utama. Jika string kustom dimasukkan, Anda harus mengambil HttpApplication.GetVaryByCustomString alih metode dalam file Global.asax aplikasi Anda.

Berlaku untuk

Lihat juga