Share via


OutputCacheSettingsSection.OutputCacheProfiles Özellik

Tanım

public:
 property System::Web::Configuration::OutputCacheProfileCollection ^ OutputCacheProfiles { System::Web::Configuration::OutputCacheProfileCollection ^ get(); };
[System.Configuration.ConfigurationProperty("outputCacheProfiles")]
public System.Web.Configuration.OutputCacheProfileCollection OutputCacheProfiles { get; }
[<System.Configuration.ConfigurationProperty("outputCacheProfiles")>]
member this.OutputCacheProfiles : System.Web.Configuration.OutputCacheProfileCollection
Public ReadOnly Property OutputCacheProfiles As OutputCacheProfileCollection

Özellik Değeri

Nesnelerin A'sı OutputCacheProfileCollectionOutputCacheProfile .

Öznitelikler

Örnekler

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

// Get the current OutputCacheProfiles property value.
OutputCacheProfileCollection outputCacheProfilesValue =
  outputCacheSettings.OutputCacheProfiles;
' Get the current OutputCacheProfiles property value.
  Dim outputCacheProfilesValue _
  As OutputCacheProfileCollection = _
  outputCacheSettings.OutputCacheProfiles

Açıklamalar

özelliği, OutputCacheProfiles yapılandırma dosyasındaki outputCacheProfiles öğesine program aracılığıyla erişmenizi sağlar. öğesini program aracılığıyla değiştirmek outputCacheProfiles için özelliğini kullanabilirsinizOutputCacheProfiles.

bölümü, outputCacheProfiles uygulamadaki sayfalar tarafından kullanılabilecek çıkış önbelleği ayarlarını temsil eden nesneler içerir OutputCacheProfile . Bu ayarlar, @ OutputCache yönergesinin CacheProfile özniteliği ayarlanarak bir sayfaya uygulanabilir. Bağımlılıklar, önbellek konumu ve önbellek süre sonu gibi önbelleğe alma özniteliklerini denetlemek için profili uygulayın.

@ OutputCache yönergesi, özelliği dışında Enabled bir OutputCacheProfile tarafından kapsanan tüm ayarları geçersiz kılabilir. Bu, geçersiz kılabilir tüm sayfalardaki yönergeleri değiştirmek zorunda kalmadan öğesini etkinleştirebileceğinizden veya devre dışı bırakabileceğinizden OutputCacheProfile emin olmaktır.

Şunlara uygulanır

Ayrıca bkz.