VssHttpClientBase.SendAsync Method (HttpRequestMessage, HttpCompletionOption, Object, CancellationToken)
Namespace: Microsoft.VisualStudio.Services.WebApi
Assembly: Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)
Syntax
'Declaration
Protected Function SendAsync ( _
message As HttpRequestMessage, _
completionOption As HttpCompletionOption, _
userState As Object, _
cancellationToken As CancellationToken _
) As Task(Of HttpResponseMessage)
protected Task<HttpResponseMessage> SendAsync(
HttpRequestMessage message,
HttpCompletionOption completionOption,
Object userState,
CancellationToken cancellationToken
)
protected:
Task<HttpResponseMessage^>^ SendAsync(
HttpRequestMessage^ message,
HttpCompletionOption completionOption,
Object^ userState,
CancellationToken cancellationToken
)
member SendAsync :
message:HttpRequestMessage *
completionOption:HttpCompletionOption *
userState:Object *
cancellationToken:CancellationToken -> Task<HttpResponseMessage>
protected function SendAsync(
message : HttpRequestMessage,
completionOption : HttpCompletionOption,
userState : Object,
cancellationToken : CancellationToken
) : Task<HttpResponseMessage>
Parameters
- message
Type: System.Net.Http.HttpRequestMessage
- completionOption
Type: System.Net.Http.HttpCompletionOption
- userState
Type: System.Object
- cancellationToken
Type: System.Threading.CancellationToken
Return Value
Type: System.Threading.Tasks.Task<HttpResponseMessage>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.