EventPattern<TEventArgs> 类

封装 .NET 事件的发送方和事件参数。

继承层次结构

System.Object
  System.Reactive.EventPattern<TEventArgs>

Namespace:System.Reactive
装配: System.Reactive.dll) 中的 System.Reactive (

语法

'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> 类型公开以下成员。

构造函数

  名称 说明
Public method Public method EventPattern<TEventArgs> 初始化 EventPattern<TEventArgs> 类型的新实例。

顶部

属性

  名称 说明
公共属性 EventArgs 表示 .NET 事件的事件参数。
公共属性 发送方 表示 .NET 事件的事件发送方信息。

顶部

方法

  名称 说明
Public method Public method 等于 (对象) 将此类型与指定的 对象进行比较。 (重写 object.Equals (Object) .)
Public method Public method 等于 (EventPattern<TEventArgs>) 将此类型与指定的 对象进行比较。
受保护的方法 完成 (继承自 Object.)
Public method Public method GetHashCode (重写 Object.GetHashCode () .)
Public method Public method GetType (继承自 Object.)
受保护的方法 MemberwiseClone (继承自 Object.)
Public method Public method ToString (继承自 Object.)

顶部

运算符

  名称 说明
Public operator Static 成员 等式 比较两个对象以查看它们是否相同。
Public operator Static 成员 不相等 比较两个对象以查看它们是否相同。

顶部

备注

FromEventPattern 运算符处理采用对象发送方和某些 EventArgs 的事件,并使用反射查找添加/删除方法。 然后,它会使用捕获发送方和事件参数的 EventPattern 类型将给定事件转换为可观测序列。

线程安全性

此类型的所有公共静态(Visual Basic 中共享的)成员都是线程安全的。 但不保证所有实例成员都是线程安全的。

另请参阅

参考

System.Reactive 命名空间