OutputCacheProfile クラスとは? わかりやすく解説

OutputCacheProfile クラス

メモ : このクラスは、.NET Framework version 2.0新しく追加されたものです。

アプリケーション ページによって使用できる出力キャッシュ プロファイル構成します。このクラス継承できません。

名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public NotInheritable Class
 OutputCacheProfile
    Inherits ConfigurationElement
Dim instance As OutputCacheProfile
public sealed class OutputCacheProfile : ConfigurationElement
public ref class OutputCacheProfile sealed
 : public ConfigurationElement
public final class OutputCacheProfile extends
 ConfigurationElement
public final class OutputCacheProfile extends
 ConfigurationElement
解説解説
使用例使用例

OutputCacheProfiles コレクション使用して、その OutputCacheProfile オブジェクトアクセスする方法次のコード例示します

  ' 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 at zero index.
  Dim outputCacheProfile _
  As System.Web.Configuration.OutputCacheProfile = _
  outputCacheSettings.OutputCacheProfiles(0)

  // 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 at zero index.
System.Web.Configuration.OutputCacheProfile outputCacheProfile = 
  outputCacheSettings.OutputCacheProfiles[0];

継承階層継承階層
System.Object
   System.Configuration.ConfigurationElement
    System.Web.Configuration.OutputCacheProfile
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
OutputCacheProfile メンバ
System.Web.Configuration 名前空間
OutputCacheProfileCollection
CacheDependency クラス
その他の技術情報
caching 要素 (ASP.NET 設定スキーマ)
caching の outputCacheSettings の outputCacheProfiles 要素 (ASP.NET 設定スキーマ)
@ OutputCache
アプリケーション データキャッシュ
方法 : ASP.NET ページキャッシュ宣言によって設定する
方法 : ページキャッシュプログラムによって設定する



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「OutputCacheProfile クラス」の関連用語

OutputCacheProfile クラスのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



OutputCacheProfile クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS