RuleFiringRecord クラス
アセンブリ: System.Web (system.web.dll 内)



CanFire メソッドに渡すときの RuleFiringRecord の使用方法のコード例を次に示します。
' Implements the IWebEventCustomEvaluator.CanFire ' method. It is called by the ASP.NET if this custom ' type is configured in the profile ' element of the healthMonitoring section. Public Function CanFire( _ ByVal e As System.Web.Management.WebBaseEvent, _ ByVal rule As RuleFiringRecord) As Boolean _ Implements System.Web.Management.IWebEventCustomEvaluator.CanFire Dim fireEvent As Boolean Dim lastFired As String = _ rule.LastFired.ToString() Dim timesRaised As String = _ rule.TimesRaised.ToString() ' Fire every other event raised. fireEvent = _ IIf(rule.TimesRaised Mod 2 = 0, True, False) If fireEvent Then firingRecordInfo = String.Format( _ "Event last fired: {0}", lastFired) + _ String.Format( _ ". Times raised: {0}", timesRaised) Else firingRecordInfo = String.Format( _ "Event not fired. Times raised: {0}", _ timesRaised) End If Return fireEvent End Function 'CanFire
// Implements the IWebEventCustomEvaluator.CanFire // method. It is called by the ASP.NET if this custom // type is configured in the profile // element of the healthMonitoring section. public bool CanFire( System.Web.Management.WebBaseEvent e, RuleFiringRecord rule) { bool fireEvent; string lastFired = rule.LastFired.ToString(); string timesRaised = rule.TimesRaised.ToString(); // Fire every other event raised. fireEvent = (rule.TimesRaised % 2 == 0) ? true : false; if (fireEvent) { firingRecordInfo = string.Format("Event last fired: {0}", lastFired) + string.Format(". Times raised: {0}", timesRaised); } else firingRecordInfo = string.Format( "Event not fired. Times raised: {0}", timesRaised); return fireEvent; }

System.Web.Management.RuleFiringRecord


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


RuleFiringRecord プロパティ
RuleFiringRecord メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

RuleFiringRecord メンバ
WebManagementEvent クラスから派生するイベントの発生レコードを表し、IWebEventCustomEvaluator インターフェイスを実装します。
RuleFiringRecord データ型で公開されるメンバを以下の表に示します。


名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

- RuleFiringRecordのページへのリンク