CustomErrorCollection.Add メソッド
アセンブリ: System.Web (system.web.dll 内)



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(); }

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からCustomErrorCollection.Add メソッドを検索する場合は、下記のリンクをクリックしてください。

- CustomErrorCollection.Add メソッドのページへのリンク