| ObservableEventTSender, 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 public EventRegistrationToken Add(
TypedEventHandler<TSender, TResult> handler
)
Public Function Add (
handler As TypedEventHandler(Of TSender, TResult)
) As EventRegistrationToken
public:
virtual EventRegistrationToken^ Add(
TypedEventHandler<TSender, TResult>^ handler
) sealed
abstract Add :
handler : TypedEventHandler<'TSender, 'TResult> -> EventRegistrationToken
override 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.
Implements
IObservableEventTSender, TResultAdd(TypedEventHandlerTSender, TResult)See Also