VssHttpClientBase.SendAsync<T> 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(Of T) ( _
message As HttpRequestMessage, _
userState As Object, _
cancellationToken As CancellationToken _
) As Task(Of T)
protected Task<T> SendAsync<T>(
HttpRequestMessage message,
Object userState,
CancellationToken cancellationToken
)
protected:
generic<typename T>
Task<T>^ SendAsync(
HttpRequestMessage^ message,
Object^ userState,
CancellationToken cancellationToken
)
member SendAsync :
message:HttpRequestMessage *
userState:Object *
cancellationToken:CancellationToken -> Task<'T>
JScript does not support generic types or methods.
Type Parameters
- T
Parameters
- message
Type: System.Net.Http.HttpRequestMessage
- userState
Type: System.Object
- cancellationToken
Type: System.Threading.CancellationToken
Return Value
Type: System.Threading.Tasks.Task<T>
.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.