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

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

CustomErrorCollection.Set メソッド

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

指定した CustomErrorコレクション追加します

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

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

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

パラメータ

customError

コレクション追加する CustomError。

解説解説
使用例使用例

指定CustomError オブジェクト設定する方法次のコード例示しますコレクション取得する方法については、CustomErrorCollection クラストピックにあるコード例参照してください

' Using the Set method.
  Dim newCustomError _
  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.Set(newCustomError)
   configuration.Save()
End If

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

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

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


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS