Partager via


FileContainerHttpClient.UploadFileAsync Method

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

Syntax

'Declaration
Public Function UploadFileAsync ( _
    containerId As Long, _
    itemPath As String, _
    fileStream As Stream, _
    cancellationToken As CancellationToken, _
    chunkSize As Integer, _
    uploadFirstChunk As Boolean, _
    userState As Object _
) As Task(Of HttpResponseMessage)
public Task<HttpResponseMessage> UploadFileAsync(
    long containerId,
    string itemPath,
    Stream fileStream,
    CancellationToken cancellationToken,
    int chunkSize,
    bool uploadFirstChunk,
    Object userState
)
public:
Task<HttpResponseMessage^>^ UploadFileAsync(
    long long containerId, 
    String^ itemPath, 
    Stream^ fileStream, 
    CancellationToken cancellationToken, 
    int chunkSize, 
    bool uploadFirstChunk, 
    Object^ userState
)
member UploadFileAsync : 
        containerId:int64 * 
        itemPath:string * 
        fileStream:Stream * 
        cancellationToken:CancellationToken * 
        chunkSize:int * 
        uploadFirstChunk:bool * 
        userState:Object -> Task<HttpResponseMessage> 
public function UploadFileAsync(
    containerId : long, 
    itemPath : String, 
    fileStream : Stream, 
    cancellationToken : CancellationToken, 
    chunkSize : int, 
    uploadFirstChunk : boolean, 
    userState : Object
) : Task<HttpResponseMessage>

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

FileContainerHttpClient Class

Microsoft.VisualStudio.Services.FileContainer.Client Namespace