BaseRequest.SendRequestAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sends the request.
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendRequestAsync (object serializableObject, System.Threading.CancellationToken cancellationToken, System.Net.Http.HttpCompletionOption completionOption = System.Net.Http.HttpCompletionOption.ResponseContentRead);
member this.SendRequestAsync : obj * System.Threading.CancellationToken * System.Net.Http.HttpCompletionOption -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Public Function SendRequestAsync (serializableObject As Object, cancellationToken As CancellationToken, Optional completionOption As HttpCompletionOption = System.Net.Http.HttpCompletionOption.ResponseContentRead) As Task(Of HttpResponseMessage)
Parameters
- serializableObject
- Object
The serializable object to send.
- cancellationToken
- CancellationToken
The CancellationToken for the request.
- completionOption
- HttpCompletionOption
The HttpCompletionOption to pass to the IHttpProvider on send.
Returns
The HttpResponseMessage object.