IMobileServiceClient.InvokeApiAsync Method (String, JToken)
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<JToken> InvokeApiAsync(
string apiName,
JToken body
)
Task<JToken^>^ InvokeApiAsync(
String^ apiName,
JToken^ body
)
abstract InvokeApiAsync :
apiName:string *
body:JToken -> Task<JToken>
Function InvokeApiAsync (
apiName As String,
body As JToken
) As Task(Of JToken)
Parameters
apiName
Type: System.StringThe name of the custom API.
body
Type: Newtonsoft.Json.Linq.JTokenThe value to be sent as the HTTP body.
Return Value
Type: System.Threading.Tasks.Task<JToken>
Returns Task<TResult>.
See Also
InvokeApiAsync Overload
IMobileServiceClient Interface
Microsoft.WindowsAzure.MobileServices Namespace
Return to top