HubProxyExtensions::On<T1, T2, T3, T4, T5, T6, T7> Method (IHubProxy, String, Action<T1, T2, T3, T4, T5, T6, T7>)
.NET Framework 4.5 Namespace:
Microsoft.AspNet.SignalR.Client.Hubs
Assembly: Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)
Registers for an event with the specified name and callback.
Assembly: Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)
[ExtensionAttribute] public: generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7> static IDisposable^ On( IHubProxy^ proxy, String^ eventName, Action<T1, T2, T3, T4, T5, T6, T7>^ onData )
Type Parameters
- T1
- T2
- T3
- T4
- T5
- T6
- T7
Parameters
- proxy
- Type: Microsoft.AspNet.SignalR.Client.Hubs::IHubProxy
The IHubProxy.
- eventName
- Type: System::String
The name of the event.
- onData
- Type: System::Action<T1, T2, T3, T4, T5, T6, T7>
The callback.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IHubProxy. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111).aspx or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).aspx.
Show: