SALES: 1-800-867-1380

IMobileServiceClient.InvokeApiAsync<T, U> Method (String, T)

Updated: June 25, 2013

Invokes a user-defined custom API of a Windows Azure Mobile Service using an HTTP POST with support for sending HTTP content.

Namespace:  Microsoft.WindowsAzure.MobileServices
Assembly:  Microsoft.WindowsAzure.Mobile (in Microsoft.WindowsAzure.Mobile.dll)

Task<U> InvokeApiAsync<T, U>(
	string apiName,
	T body
)

Type Parameters

T

The type of instance sent to the Windows Azure Mobile Service.

U

The type of instance returned from the Windows Azure Mobile Service.

Parameters

apiName
Type: System.String
The name of the custom API.
body
Type: T
The value to be sent as the HTTP body.

Return Value

Type: System.Threading.Tasks.Task<U>
The response content from the custom api invocation.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft