MobileServiceClient.InvokeApiAsync<T, U> Method (String, T, HttpMethod, IDictionary<String, String>)

 

Invokes a user-defined custom API of a Azure Mobile Service using the specified HTTP Method. Additional data can be sent though the HTTP content or the query string.

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

Syntax

public Task<U> InvokeApiAsync<T, U>(
    string apiName,
    T body,
    HttpMethod method,
    IDictionary<string, string> parameters
)
public:
generic<typename T, typename U>
virtual Task<U>^ InvokeApiAsync(
    String^ apiName,
    T body,
    HttpMethod^ method,
    IDictionary<String^, String^>^ parameters
) sealed
abstract InvokeApiAsync<'T, 'U> : 
        apiName:string *
        body:'T *
        method:HttpMethod *
        parameters:IDictionary<string, string> -> Task<'U>
override InvokeApiAsync<'T, 'U> : 
        apiName:string *
        body:'T *
        method:HttpMethod *
        parameters:IDictionary<string, string> -> Task<'U>
Public Function InvokeApiAsync(Of T, U) (
    apiName As String,
    body As T,
    method As HttpMethod,
    parameters As IDictionary(Of String, String)
) 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
MobileServiceClient Class
Microsoft.WindowsAzure.MobileServices Namespace

Return to top