다음을 통해 공유


MeteringHttpClient.SendAsync<T> Method (HttpMethod, Guid, Object, ApiResourceVersion, HttpContent, NameValueCollection, Object)

Namespace:  Microsoft.VisualStudio.Services.Commerce.Client
Assembly:  Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)

Syntax

'Declaration
Public Overridable Function SendAsync(Of T) ( _
    method As HttpMethod, _
    locationId As Guid, _
    routeValues As Object, _
    version As ApiResourceVersion, _
    content As HttpContent, _
    queryParameters As NameValueCollection, _
    userState As Object _
) As Task(Of T)
public virtual Task<T> SendAsync<T>(
    HttpMethod method,
    Guid locationId,
    Object routeValues,
    ApiResourceVersion version,
    HttpContent content,
    NameValueCollection queryParameters,
    Object userState
)
public:
generic<typename T>
virtual Task<T>^ SendAsync(
    HttpMethod^ method, 
    Guid locationId, 
    Object^ routeValues, 
    ApiResourceVersion^ version, 
    HttpContent^ content, 
    NameValueCollection^ queryParameters, 
    Object^ userState
)
abstract SendAsync : 
        method:HttpMethod * 
        locationId:Guid * 
        routeValues:Object * 
        version:ApiResourceVersion * 
        content:HttpContent * 
        queryParameters:NameValueCollection * 
        userState:Object -> Task<'T> 
override SendAsync : 
        method:HttpMethod * 
        locationId:Guid * 
        routeValues:Object * 
        version:ApiResourceVersion * 
        content:HttpContent * 
        queryParameters:NameValueCollection * 
        userState:Object -> Task<'T> 
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

Return Value

Type: System.Threading.Tasks.Task<T>

.NET Framework Security

See Also

Reference

MeteringHttpClient Class

SendAsync Overload

Microsoft.VisualStudio.Services.Commerce.Client Namespace