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




Add メソッドを使用するコード例を次に示します。このコード例は、HealthMonitoringSection クラスのトピックで取り上げているコード例の一部分です。
' Add a RuleSettings object to the Rules collection property. Dim ruleSetting As RuleSettings = new RuleSettings("All Errors Default", _ "All Errors", "EventLogProvider") ruleSetting.Name = "All Errors Custom" ruleSetting.EventName = "All Errors" ruleSetting.Provider = "EventLogProvider" ruleSetting.Profile = "Custom" ruleSetting.MaxLimit = Int32.MaxValue ruleSetting.MinInstances = 1 ruleSetting.MinInterval = TimeSpan.Parse("00:00:30") ruleSetting.Custom = "MyEvaluators.MyCustomeEvaluator2, MyCustom.dll" healthMonitoringSection.Rules.Add(ruleSetting)
// Add a RuleSettings object to the Rules collection property. RuleSettings ruleSetting = new RuleSettings("All Errors Default" , "All Errors", "EventLogProvider"); ruleSetting.Name = "All Errors Custom"; ruleSetting.EventName = "All Errors"; ruleSetting.Provider = "EventLogProvider"; ruleSetting.Profile = "Custom"; ruleSetting.MaxLimit = Int32.MaxValue; ruleSetting.MinInstances = 1; ruleSetting.MinInterval = TimeSpan.Parse("00:00:30"); ruleSetting.Custom = "MyEvaluators.MyCustomeEvaluator2, MyCustom.dll"; healthMonitoringSection.Rules.Add(ruleSetting);

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に収録されているすべての辞書からRuleSettingsCollection.Add メソッドを検索する場合は、下記のリンクをクリックしてください。

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