ClientProxy.Invoke Method
.NET Framework 4
Invokes a method on the connection(s) represented by the ClientProxy instance.
Namespace: Microsoft.AspNet.SignalR.Hubs
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
Syntax
'Declaration
Public Function Invoke ( _
method As String, _
ParamArray args As Object() _
) As Task
'Usage
Dim instance As ClientProxy
Dim method As String
Dim args As Object()
Dim returnValue As Task
returnValue = instance.Invoke(method, _
args)
public Task Invoke(
string method,
params Object[] args
)
public:
virtual Task^ Invoke(
String^ method,
... array<Object^>^ args
) sealed
abstract Invoke :
method:string *
args:Object[] -> Task
override Invoke :
method:string *
args:Object[] -> Task
public final function Invoke(
method : String,
... args : Object[]
) : Task
Parameters
- method
Type: System.String
The name of the method to invoke.
- args
Type: System.Object[]
The arguments to pass to the client.
Return Value
Type: System.Threading.Tasks.Task
A task that represents when the data has been sent to the client.
Implements
IClientProxy.Invoke(String, Object[])