| IObservableEventTSender, TResultAdd Method |
Adds a handler to the observed event.
Namespace: Microsoft.IoT.DeviceHelpersAssembly: Microsoft.IoT.DeviceHelpers (in Microsoft.IoT.DeviceHelpers.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax EventRegistrationToken Add(
TypedEventHandler<TSender, TResult> handler
)
Function Add (
handler As TypedEventHandler(Of TSender, TResult)
) As EventRegistrationToken
EventRegistrationToken^ Add(
TypedEventHandler<TSender, TResult>^ handler
)
abstract Add :
handler : TypedEventHandler<'TSender, 'TResult> -> EventRegistrationToken
Parameters
- handler
- Type: Windows.FoundationTypedEventHandlerTSender, TResult
The handler to add.
Return Value
Type:
EventRegistrationToken
A token that can be used to remove the event handler from the
invocation list.
See Also