IHubProxy::Invoke<T> Method (String, array<Object>)

.NET Framework 4.5

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)

generic<typename T>
Task<T>^ Invoke(
	String^ method, 
	... array<Object^>^ args
)

Type Parameters

T

The type of result returned from the hub.

Parameters

method
Type: System::String
The name of the method.
args
Type: array<System::Object>
The arguments.

Return Value

Type: System.Threading.Tasks::Task<T>
A task that represents when invocation returned.
Show: