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



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

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.Set メソッドを検索する場合は、下記のリンクをクリックしてください。

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