ISpeechClientSubscribeToT Method |
Subscribes to a specific event to perform a given action.
Namespace:
Microsoft.Bing.Speech
Assembly:
Microsoft.Bing.Speech (in Microsoft.Bing.Speech.dll) Version: 2.0.1.0 (2.0.1)
Syntaxvoid SubscribeTo<T>(
Func<T, Task> action
)
Sub SubscribeTo(Of T) (
action As Func(Of T, Task)
)
generic<typename T>
void SubscribeTo(
Func<T, Task^>^ action
)
abstract SubscribeTo :
action : Func<'T, Task> -> unit
Parameters
- action
- Type: SystemFuncT, Task
The action.
Type Parameters
- T
- Type of the subscription.
Remarks
Only the last action subscribed will be executed.
See Also