命名空间: 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 _
) As Task(Of HttpResponseMessage)
public Task<HttpResponseMessage> UploadFileAsync(
long containerId,
string itemPath,
Stream fileStream,
CancellationToken cancellationToken,
int chunkSize,
bool uploadFirstChunk,
Object userState
)
参数
- containerId
类型:System.Int64
- itemPath
类型:System.String
- fileStream
类型:System.IO.Stream
- cancellationToken
类型:System.Threading.CancellationToken
- chunkSize
类型:System.Int32
- uploadFirstChunk
类型:System.Boolean
- userState
类型:System.Object
返回值
类型:System.Threading.Tasks.Task<HttpResponseMessage>
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。