Eventpattern(Teventargs)

EventPattern<TEventArgs> Methods

Include Protected Members
Include Inherited Members

The EventPattern<TEventArgs> type exposes the following members.

Methods

NameDescriptionPublic methodEquals(Object)Compares this type with the specified object. (Overrides Object.Equals(Object).)Public methodEquals(EventPattern)Compares this type with the specified object.Protected methodFinalize(Inherited from Object.)Public methodGetHashCode(Overrides Object.GetHashCode().)Public methodGetType(Inherited from Object.)Protected methodMemberwiseClone(Inherited from Object.)Public methodToString(Inherited from Object.)Top

See Also

Reference

EventPattern<TEventArgs> Class

System.Reactive Namespace

EventPattern<TEventArgs> Operators

Include Protected Members
Include Inherited Members

The EventPattern<TEventArgs> type exposes the following members.

Operators

NameDescriptionPublic operatorStatic memberEqualityCompare two objects to see if they are identical.Public operatorStatic memberInequalityCompare two objects to see if they are identical.Top

See Also

Reference

EventPattern<TEventArgs> Class

System.Reactive Namespace

EventPattern<TEventArgs> Properties

Include Protected Members
Include Inherited Members

The EventPattern<TEventArgs> type exposes the following members.

Properties

NameDescriptionPublic propertyEventArgsRepresents event arguments for a .NET event.Public propertySenderRepresents event sender information for a .NET event.Top

See Also

Reference

EventPattern<TEventArgs> Class

System.Reactive Namespace

EventPattern<TEventArgs> Class

Encapsulates sender and event arguments for a .NET event.

Inheritance Hierarchy

System.Object
  System.Reactive.EventPattern<TEventArgs>

Namespace:  System.Reactive
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'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.

Type Parameters

  • TEventArgs

The EventPattern<TEventArgs> type exposes the following members.

Constructors

NameDescriptionPublic methodEventPatternInitialize a new instance of the EventPattern type.Top

Properties

NameDescriptionPublic propertyEventArgsRepresents event arguments for a .NET event.Public propertySenderRepresents event sender information for a .NET event.Top

Methods

NameDescriptionPublic methodEquals(Object)Compares this type with the specified object. (Overrides Object.Equals(Object).)Public methodEquals(EventPattern)Compares this type with the specified object.Protected methodFinalize(Inherited from Object.)Public methodGetHashCode(Overrides Object.GetHashCode().)Public methodGetType(Inherited from Object.)Protected methodMemberwiseClone(Inherited from Object.)Public methodToString(Inherited from Object.)Top

Operators

NameDescriptionPublic operatorStatic memberEqualityCompare two objects to see if they are identical.Public operatorStatic memberInequalityCompare two objects to see if they are identical.Top

Remarks

The FromEventPattern operator works with events that take an object sender and some EventArgs, and uses reflection to find add/remove methods. It then converts the given event into an observable sequence with an EventPattern type that captures both the sender and the event arguments.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Reactive Namespace

EventPattern<TEventArgs> Constructor

Initialize a new instance of the EventPattern<TEventArgs> type.

Namespace:  System.Reactive
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
Public Sub New ( _
    sender As Object, _
    e As TEventArgs _
)
'Usage
Dim sender As Object
Dim e As TEventArgs

Dim instance As New EventPattern(sender, _
    e)
public EventPattern(
    Object sender,
    TEventArgs e
)
public:
EventPattern(
    Object^ sender, 
    TEventArgs e
)
new : 
        sender:Object * 
        e:'TEventArgs -> EventPattern
public function EventPattern(
    sender : Object, 
    e : TEventArgs
)

Parameters

See Also

Reference

EventPattern<TEventArgs> Class

System.Reactive Namespace