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
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 にできるようにするためです。
製品 | バージョン |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。