SystemWebCachingSectionGroup.Cache Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Yapılandırmada cache yer alan bölümü alır.
public:
property System::Web::Configuration::CacheSection ^ Cache { System::Web::Configuration::CacheSection ^ get(); };
[System.Configuration.ConfigurationProperty("cache")]
public System.Web.Configuration.CacheSection Cache { get; }
[<System.Configuration.ConfigurationProperty("cache")>]
member this.Cache : System.Web.Configuration.CacheSection
Public ReadOnly Property Cache As CacheSection
Özellik Değeri
CacheSection nesnesi.
- Öznitelikler
Örnekler
Aşağıdaki kod örneğinde, nesnenin CacheSection var olan bir Web uygulamasının yapılandırma dosyasından nasıl alın aldığı gösterilmektedir.
// Get the <cache> section.
CacheSection cache =
cachingSectionGroup.Cache;
// Display one of its properties.
msg = String.Format(
"Cache disable expiration: {0}\n",
cache.DisableExpiration);
Console.Write(msg);
' Get the <cache> section.
Dim cache As CacheSection = _
cachingSectionGroup.Cache
' Display one of its properties.
msg = String.Format( _
"Cache disable expiration: {0}" + _
ControlChars.Lf, cache.DisableExpiration)
Console.Write(msg)
Açıklamalar
CacheSection nesnesi, yapılandırma dosyasının cache bölümüne başvurur. bölümü program aracılığıyla değiştirmek için sınıfını cache kullanabilirsinizCacheSection.