OutputCacheProfileCollection.Add メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > OutputCacheProfileCollection.Add メソッドの意味・解説 

OutputCacheProfileCollection.Add メソッド

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

OutputCacheProfile オブジェクトコレクション追加します

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

Public Sub Add ( _
    name As OutputCacheProfile _
)
Dim instance As OutputCacheProfileCollection
Dim name As OutputCacheProfile

instance.Add(name)
public void Add (
    OutputCacheProfile name
)
public:
void Add (
    OutputCacheProfile^ name
)
public void Add (
    OutputCacheProfile name
)
public function Add (
    name : OutputCacheProfile
)

パラメータ

name

コレクション追加する OutputCacheProfile オブジェクトの名前。

例外例外
例外種類条件

ConfigurationException

OutputCacheProfile オブジェクトが既にコレクション存在している、またはコレクション読み取り専用です。

解説解説

コレクションに同じ名前の OutputCacheProfile オブジェクト含めることはできません。

使用例使用例

Add メソッド使用するコード例次に示します

' Execute the Add method.
  Dim outputCacheProfile0 _
  As New System.Web.Configuration.OutputCacheProfile(
 _
  "MyCacheProfile")
  outputCacheProfile0.Location = _
  System.Web.UI.OutputCacheLocation.Any
  outputCacheProfile0.NoStore = _
  False

  outputCacheProfiles.Add(outputCacheProfile0)

' Update if not locked.
  If Not outputCacheSettings.IsReadOnly() Then
      webConfig.Save()
  End If
// Execute the Add method.
System.Web.Configuration.OutputCacheProfile outputCacheProfile0 =
  new System.Web.Configuration.OutputCacheProfile("MyCacheProfile");
outputCacheProfile0.Location = 
    System.Web.UI.OutputCacheLocation.Any;
outputCacheProfile0.NoStore = false;

outputCacheProfiles.Add(outputCacheProfile0);

// Update if not locked.
if (!outputCacheSettings.IsReadOnly())
{
    webConfig.Save();
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
OutputCacheProfileCollection クラス
OutputCacheProfileCollection メンバ
System.Web.Configuration 名前空間
OutputCacheProfile クラス
その他の技術情報
caching 要素 (ASP.NET 設定スキーマ)



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

辞書ショートカット

すべての辞書の索引

OutputCacheProfileCollection.Add メソッドのお隣キーワード
検索ランキング

   

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



OutputCacheProfileCollection.Add メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS