OutputCacheProfileCollection クラス
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
OutputCacheProfile オブジェクトのコレクションを表します。 このクラスは継承できません。
public ref class OutputCacheProfileCollection sealed : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.OutputCacheProfile))]
public sealed class OutputCacheProfileCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.OutputCacheProfile))>]
type OutputCacheProfileCollection = class
inherit ConfigurationElementCollection
Public NotInheritable Class OutputCacheProfileCollection
Inherits ConfigurationElementCollection
- 継承
- 属性
次のコード例は、 オブジェクトを取得する方法を OutputCacheProfileCollection 示しています。
// Get the Web application configuration.
System.Configuration.Configuration webConfig =
WebConfigurationManager.OpenWebConfiguration("/aspnetTest");
// Get the section.
string configPath =
"system.web/caching/outputCacheSettings";
System.Web.Configuration.OutputCacheSettingsSection outputCacheSettings =
(System.Web.Configuration.OutputCacheSettingsSection)webConfig.GetSection(
configPath);
// Get the profile collection.
System.Web.Configuration.OutputCacheProfileCollection outputCacheProfiles =
outputCacheSettings.OutputCacheProfiles;
' ' Get the Web application configuration.
Dim webConfig _
As System.Configuration.Configuration = _
WebConfigurationManager.OpenWebConfiguration( _
"/aspnetTest")
' Get the section.
Dim configPath As String = _
"system.web/caching/outputCacheSettings"
Dim outputCacheSettings _
As System.Web.Configuration.OutputCacheSettingsSection = _
CType(webConfig.GetSection(configPath), _
System.Web.Configuration.OutputCacheSettingsSection)
' Get the profile collection.
Dim outputCacheProfiles _
As System.Web.Configuration.OutputCacheProfileCollection = _
outputCacheSettings.OutputCacheProfiles
OutputCacheProfileCollectionでは、ページまたはユーザー コントロールで使用される出力キャッシュ設定の管理を一元化できます。
プログラムを使用して、それに含まれるオブジェクトに OutputCacheProfile アクセスして変更できます。
注意
はOutputCacheProfile、 @ OutputCache ディレクティブの 属性をCacheProfile
使用してページに適用できます。
Output |
OutputCacheProfileCollection クラスの新しいインスタンスを初期化します。 |
ICollection. |
ConfigurationElementCollection を配列にコピーします。 (継承元 ConfigurationElementCollection) |
Cast<TResult>(IEnumerable) |
IEnumerable の要素を、指定した型にキャストします。 |
Of |
指定された型に基づいて IEnumerable の要素をフィルター処理します。 |
As |
クエリの並列化を有効にします。 |
As |
IEnumerable を IQueryable に変換します。 |
製品 | バージョン |
---|---|
.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 はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。