共用方式為


FileContainerHttpClient.UploadFileAsync 方法 (Int64, String, Stream, CancellationToken, Int32, Boolean, Object, Boolean)

命名空間:  Microsoft.VisualStudio.Services.FileContainer.Client
組件:  Microsoft.VisualStudio.Services.WebApi (在 Microsoft.VisualStudio.Services.WebApi.dll 中)

語法

'宣告
Public Function UploadFileAsync ( _
    containerId As Long, _
    itemPath As String, _
    fileStream As Stream, _
    cancellationToken As CancellationToken, _
    chunkSize As Integer, _
    uploadFirstChunk As Boolean, _
    userState As Object, _
    compressStream As Boolean _
) As Task(Of HttpResponseMessage)
public Task<HttpResponseMessage> UploadFileAsync(
    long containerId,
    string itemPath,
    Stream fileStream,
    CancellationToken cancellationToken,
    int chunkSize,
    bool uploadFirstChunk,
    Object userState,
    bool compressStream
)

參數

傳回值

類型:System.Threading.Tasks.Task<HttpResponseMessage>

.NET Framework 安全性

請參閱

參考

FileContainerHttpClient 類別

UploadFileAsync 多載

Microsoft.VisualStudio.Services.FileContainer.Client 命名空間