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

プロパティ値

OutputCacheProfileCollection オブジェクトの OutputCacheProfile

属性

次のコード例は、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 ディレクティブは、 プロパティを除く によって含まれるすべての設定をOutputCacheProfileEnabledオーバーライドできます。 これは、 をオーバーライドしたすべてのページの ディレクティブを変更することなく、 を有効または無効 OutputCacheProfile にできるようにするためです。

適用対象

こちらもご覧ください