HttpClientExtensions.DownloadFileFromTfsAsync Method

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function DownloadFileFromTfsAsync ( _
    client As HttpClient, _
    requestUri As Uri, _
    stream As Stream _
) As Task(Of HttpResponseMessage)
public static Task<HttpResponseMessage> DownloadFileFromTfsAsync(
    this HttpClient client,
    Uri requestUri,
    Stream stream
)
[ExtensionAttribute]
public:
static Task<HttpResponseMessage^>^ DownloadFileFromTfsAsync(
    HttpClient^ client, 
    Uri^ requestUri, 
    Stream^ stream
)
static member DownloadFileFromTfsAsync : 
        client:HttpClient * 
        requestUri:Uri * 
        stream:Stream -> Task<HttpResponseMessage> 
public static function DownloadFileFromTfsAsync(
    client : HttpClient, 
    requestUri : Uri, 
    stream : Stream
) : Task<HttpResponseMessage>

Parameters

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpClient. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

HttpClientExtensions Class

Microsoft.VisualStudio.Services.WebApi Namespace