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

 

Invokes a user-defined custom API of a 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)

Syntax

Task<U> InvokeApiAsync<T, U>(
    string apiName,
    T body
)
generic<typename T, typename U>
Task<U>^ InvokeApiAsync(
    String^ apiName,
    T body
)
abstract InvokeApiAsync<'T, 'U> : 
        apiName:string *
        body:'T -> Task<'U>
Function InvokeApiAsync(Of T, U) (
    apiName As String,
    body As T
) As Task(Of U)

Parameters

  • 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.

Type Parameters

  • T
    The type of instance sent to the Azure Mobile Service.
  • U
    The type of instance returned from the Azure Mobile Service.

See Also

InvokeApiAsync Overload
IMobileServiceClient Interface
Microsoft.WindowsAzure.MobileServices Namespace

Return to top