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

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

CustomErrorCollection.Add メソッド

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

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

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

Public Sub Add ( _
    customError As CustomError _
)
Dim instance As CustomErrorCollection
Dim customError As CustomError

instance.Add(customError)
public void Add (
    CustomError customError
)
public:
void Add (
    CustomError^ customError
)
public void Add (
    CustomError customError
)
public function Add (
    customError : CustomError
)

パラメータ

customError

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

解説解説
使用例使用例

CustomError オブジェクトを CustomErrorCollection コレクション追加するコード例次に示します

コレクション取得する方法については、CustomErrorCollection クラストピックにあるコード例参照してください

' Using the Add method.
  Dim newCustomError2 _
  As New CustomError(404, "customerror404.htm")

' Update the configuration file.
If Not customErrorsSection.SectionInformation.IsLocked
 Then
   ' Add the new custom error to the collection.
   customErrorsCollection.Add(newCustomError2)
   configuration.Save()
End If

// Using the Add method.
CustomError newCustomError2 =
new CustomError(404, "customerror404.htm");

// Update the configuration file.
if (!customErrorsSection.SectionInformation.IsLocked)
{
    // Add the new custom error to the collection.
    customErrorsCollection.Add(newCustomError2);
    configuration.Save();
}

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CustomErrorCollection クラス
CustomErrorCollection メンバ
System.Web.Configuration 名前空間
その他の技術情報
customErrors 要素 (ASP.NET 設定スキーマ)


このページでは「.NET Framework クラス ライブラリ リファレンス」からCustomErrorCollection.Add メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からCustomErrorCollection.Add メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からCustomErrorCollection.Add メソッド を検索

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS