Click or drag to resize
ObservableEventTSender, TResult Class
A class that provides an observable event.
Inheritance Hierarchy
SystemObject
  Microsoft.IoT.DeviceHelpersObservableEventTSender, TResult

Namespace: Microsoft.IoT.DeviceHelpers
Assembly: Microsoft.IoT.DeviceHelpers (in Microsoft.IoT.DeviceHelpers.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class ObservableEvent<TSender, TResult> : IObservableEvent<TSender, TResult>

Type Parameters

TSender
The type of object that raises the event.
TResult
The type of result (or args) passed to event handlers.

The ObservableEventTSender, TResult type exposes the following members.

Constructors
  NameDescription
Public methodObservableEventTSender, TResult(IEventObserver)
Initializes a new ObservableEventTSender, TResult.
Public methodObservableEventTSender, TResult(ScheduledAction)
Initializes a new ObservableEventTSender, TResult.
Top
Methods
  NameDescription
Public methodAdd
Adds a handler to the observed event.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRaise
Raises the observed event if there is at least one subscriber.
Public methodRemove(EventRegistrationToken)
Removes a handler from the observed event.
Public methodRemove(TypedEventHandlerTSender, TResult)
Removes a handler from the observed event.
Public methodToString (Inherited from Object.)
Top
Remarks
ObservableEventTSender, TResult is a helper class that creates Windows Runtime compatible events whose subscriptions can be monitored. Subscriptions can be monitored by passing a class that implements IEventObserver into the constructor.
See Also