EventPattern<TEventArgs> クラス
.NET イベントの送信者とイベントの引数をカプセル化します。
継承階層
System.Object
System.Reactive.EventPattern<TEventArgs>
Namespace:System.Reactive
アセンブリ: System.Reactive (System.Reactive.dll)
構文
'Declaration
Public Class EventPattern(Of TEventArgs As EventArgs) _
Implements IEquatable(Of EventPattern(Of TEventArgs))
'Usage
Dim instance As EventPattern(Of TEventArgs)
public class EventPattern<TEventArgs> : IEquatable<EventPattern<TEventArgs>>
where TEventArgs : EventArgs
generic<typename TEventArgs>
where TEventArgs : EventArgs
public ref class EventPattern : IEquatable<EventPattern<TEventArgs>^>
type EventPattern<'TEventArgs when 'TEventArgs : EventArgs> =
class
interface IEquatable<EventPattern<'TEventArgs>>
end
JScript does not support generic types and methods.
型パラメーター
- TEventArgs
EventPattern<TEventArgs 型は、> 次のメンバーを公開します。
コンストラクター
名前 | 説明 | |
---|---|---|
![]() |
EventPattern<TEventArgs> | EventPattern<TEventArgs 型の新しいインスタンスを> 初期化します。 |
上
プロパティ
名前 | 説明 | |
---|---|---|
![]() |
EventArgs | .NET イベントのイベント引数を表します。 |
![]() |
送信者 | .NET イベントのイベント送信者情報を表します。 |
上
メソッド
名前 | 説明 | |
---|---|---|
![]() |
Equals(Object) | この型を指定したオブジェクトと比較します。 ( Object.Equals(Object)をオーバーライドします。) |
![]() |
Equals(EventPattern<TEventArgs>) | この型を指定したオブジェクトと比較します。 |
![]() |
Finalize | ( オブジェクトから継承されます)。 |
![]() |
GetHashCode | ( Overrides Object.GetHashCode())) |
![]() |
GetType | ( オブジェクトから継承されます)。 |
![]() |
MemberwiseClone | ( オブジェクトから継承されます)。 |
![]() |
ToString | ( オブジェクトから継承されます)。 |
上
オペレーター
名前 | 説明 | |
---|---|---|
![]() ![]() |
等式 | 2 つのオブジェクトを比較して、それらが同じかどうかを確認します。 |
![]() ![]() |
不等式 | 2 つのオブジェクトを比較して、それらが同じかどうかを確認します。 |
上
解説
FromEventPattern 演算子は、オブジェクトの送信者と一部の EventArgs を受け取るイベントを処理し、リフレクションを使用して add/remove メソッドを検索します。 次に、指定されたイベントを、送信者とイベント引数の両方をキャプチャする EventPattern 型の監視可能なシーケンスに変換します。
スレッド セーフ
この型の public static (Visual Basic では Shared) のメンバーはすべて、スレッド セーフです。 インスタンス メンバーの場合は、スレッド セーフであるとは限りません。