.NET Framework 4
Executes a method on the server side hub asynchronously.
Namespace:  Microsoft.AspNet.SignalR.Client.Hubs
Assembly:  Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)
Syntax
'Declaration
Function Invoke(Of T) ( _
    method As String, _
    ParamArray args As Object() _
) As Task(Of T)
'Usage
Dim instance As IHubProxy 
Dim method As String 
Dim args As Object()
Dim returnValue As Task(Of T)
returnValue = instance.Invoke(method, _
    args)
Task<T> Invoke<T>(
    string method,
    params Object[] args
)
generic<typename T>
Task<T>^ Invoke(
    String^ method, 
    ... array<Object^>^ args
)
abstract Invoke : 
        method:string * 
        args:Object[] -> Task<'T> 
JScript does not support generic types and methods.
Type Parameters
- T
 The type of result returned from the hub
Parameters
- method
 Type: System.String
 The name of the method.
- args
 Type: System.Object[]
 The arguments
Return Value
Type: System.Threading.Tasks.Task<T>
A task that represents when invocation returned.