VssHttpClientBase.SendAsync Method (HttpRequestMessage, 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, _
userState As Object, _
cancellationToken As CancellationToken _
) As Task(Of HttpResponseMessage)
protected Task<HttpResponseMessage> SendAsync(
HttpRequestMessage message,
Object userState,
CancellationToken cancellationToken
)
protected:
Task<HttpResponseMessage^>^ SendAsync(
HttpRequestMessage^ message,
Object^ userState,
CancellationToken cancellationToken
)
member SendAsync :
message:HttpRequestMessage *
userState:Object *
cancellationToken:CancellationToken -> Task<HttpResponseMessage>
protected function SendAsync(
message : HttpRequestMessage,
userState : Object,
cancellationToken : CancellationToken
) : Task<HttpResponseMessage>
Parameters
- message
Type: System.Net.Http.HttpRequestMessage
- 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.