Bagikan melalui


MemoryCacheElement.Name Properti

Definisi

Mendapatkan atau mengatur nama konfigurasi cache tertentu.

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))]
[System.Configuration.ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Name { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))>]
[<System.Configuration.ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Name : string with get, set
Public Property Name As String

Nilai Properti

Nama konfigurasi cache.

Atribut

Keterangan

Nilai Name properti adalah pengidentifikasi unik untuk konfigurasi cache bernama tertentu. Setiap konfigurasi cache harus memiliki ID unik.

Di bagian memoryCache file konfigurasi, konfigurasi cache unik ditentukan oleh namedCaches kumpulan konfigurasi. Setiap entri cache bernama memerlukan nama unik dalam file konfigurasi. Nilai ini harus panjangnya minimal satu karakter.

Untuk informasi selengkapnya tentang cara mengonfigurasi cache, lihat <namedCaches> Element (Pengaturan Cache).

Berlaku untuk

Lihat juga