OutputCacheSettingsSection.OutputCacheProfiles プロパティ

定義

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 をオーバーライドしたすべてのページでディレクティブを変更することなく、有効または無効にできるようにするためです。

適用対象

こちらもご覧ください