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
)
參數
- containerId
類型:System.Int64
- itemPath
類型:System.String
- fileStream
類型:System.IO.Stream
- cancellationToken
類型:System.Threading.CancellationToken
- chunkSize
類型:System.Int32
- uploadFirstChunk
類型:System.Boolean
- userState
類型:System.Object
- compressStream
類型:System.Boolean
傳回值
類型:System.Threading.Tasks.Task<HttpResponseMessage>
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱 從部分受信任程式碼使用程式庫。