OutputCacheSettingsSection.OutputCacheProfiles プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
OutputCacheProfileCollectionを取得します。
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
プロパティ値
OutputCacheProfile オブジェクトのOutputCacheProfileCollection。
- 属性
例
次のコード例は、 OutputCacheProfiles プロパティの使用方法を示しています。
// Get the current OutputCacheProfiles property value.
OutputCacheProfileCollection outputCacheProfilesValue =
outputCacheSettings.OutputCacheProfiles;
' Get the current OutputCacheProfiles property value.
Dim outputCacheProfilesValue _
As OutputCacheProfileCollection = _
outputCacheSettings.OutputCacheProfiles
注釈
OutputCacheProfiles プロパティを使用すると、構成ファイル内のoutputCacheProfiles要素にプログラムでアクセスできます。
OutputCacheProfiles プロパティを使用して、outputCacheProfiles要素をプログラムで変更できます。
outputCacheProfiles セクションには、アプリケーションのページで使用できる出力キャッシュ設定を表すOutputCacheProfileオブジェクトが含まれています。 これらの設定は、@ OutputCache ディレクティブのCacheProfile属性を設定することで、ページに適用できます。 プロファイルを適用して、依存関係、キャッシュの場所、キャッシュの有効期限などのキャッシュ属性を制御します。
@ OutputCache ディレクティブは、Enabled プロパティを除く、OutputCacheProfileに含まれるすべての設定をオーバーライドできます。 これは、 OutputCacheProfile をオーバーライドしたすべてのページでディレクティブを変更することなく、有効または無効にできるようにするためです。