FileContainerHttpClient.DownloadFileAsync Method
Namespace: Microsoft.VisualStudio.Services.FileContainer.Client
Assembly: Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)
Syntax
'Declaration
Public Function DownloadFileAsync ( _
containerId As Long, _
itemPath As String, _
cancellationToken As CancellationToken, _
userState As Object _
) As Task(Of Stream)
public Task<Stream> DownloadFileAsync(
long containerId,
string itemPath,
CancellationToken cancellationToken,
Object userState
)
public:
Task<Stream^>^ DownloadFileAsync(
long long containerId,
String^ itemPath,
CancellationToken cancellationToken,
Object^ userState
)
member DownloadFileAsync :
containerId:int64 *
itemPath:string *
cancellationToken:CancellationToken *
userState:Object -> Task<Stream>
public function DownloadFileAsync(
containerId : long,
itemPath : String,
cancellationToken : CancellationToken,
userState : Object
) : Task<Stream>
Parameters
- containerId
Type: System.Int64
- itemPath
Type: System.String
- cancellationToken
Type: System.Threading.CancellationToken
- userState
Type: System.Object
Return Value
Type: System.Threading.Tasks.Task<Stream>
.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.
See Also
Reference
Microsoft.VisualStudio.Services.FileContainer.Client Namespace