你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CloudFile.UploadFromByteArrayAsync 方法

定义

重载

UploadFromByteArrayAsync(Byte[], Int32, Int32, AccessCondition, FileRequestOptions, OperationContext, IProgress<StorageProgress>, CancellationToken)

返回一个任务,该任务执行异步操作以将字节数组的内容上传到文件。 如果服务上已存在该文件,则会覆盖该文件。

UploadFromByteArrayAsync(Byte[], Int32, Int32, AccessCondition, FileRequestOptions, OperationContext, CancellationToken)

返回一个任务,该任务执行异步操作以将字节数组的内容上传到文件。 如果服务上已存在该文件,则会覆盖该文件。

UploadFromByteArrayAsync(Byte[], Int32, Int32, CancellationToken)

返回一个任务,该任务执行异步操作以将字节数组的内容上传到文件。 如果服务上已存在该文件,则会覆盖该文件。

UploadFromByteArrayAsync(Byte[], Int32, Int32)

返回一个任务,该任务执行异步操作以将字节数组的内容上传到文件。 如果服务上已存在该文件,则会覆盖该文件。

UploadFromByteArrayAsync(Byte[], Int32, Int32, AccessCondition, FileRequestOptions, OperationContext)

返回一个任务,该任务执行异步操作以将字节数组的内容上传到文件。 如果服务上已存在该文件,则会覆盖该文件。

UploadFromByteArrayAsync(Byte[], Int32, Int32, AccessCondition, FileRequestOptions, OperationContext, IProgress<StorageProgress>, CancellationToken)

返回一个任务,该任务执行异步操作以将字节数组的内容上传到文件。 如果服务上已存在该文件,则会覆盖该文件。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task UploadFromByteArrayAsync (byte[] buffer, int index, int count, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.File.FileRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, IProgress<Microsoft.Azure.Storage.Core.Util.StorageProgress> progressHandler, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member UploadFromByteArrayAsync : byte[] * int * int * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * IProgress<Microsoft.Azure.Storage.Core.Util.StorageProgress> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.UploadFromByteArrayAsync : byte[] * int * int * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * IProgress<Microsoft.Azure.Storage.Core.Util.StorageProgress> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function UploadFromByteArrayAsync (buffer As Byte(), index As Integer, count As Integer, accessCondition As AccessCondition, options As FileRequestOptions, operationContext As OperationContext, progressHandler As IProgress(Of StorageProgress), cancellationToken As CancellationToken) As Task

参数

buffer
Byte[]

字节数组。

index
Int32

缓冲区中从零开始将字节上传到文件的字节偏移量。

count
Int32

要写入文件的字节数。

accessCondition
AccessCondition

一个表示文件访问条件的 AccessCondition 对象。

options
FileRequestOptions

一个 FileRequestOptions 对象,它指定请求的其他选项。

operationContext
OperationContext

一个 OperationContext 对象,它一个表示当前操作的上下文。

progressHandler
IProgress<StorageProgress>

用于 IProgress<T> 处理 StorageProgress 消息的 对象。

cancellationToken
CancellationToken

等待任务完成期间要观察的 CancellationToken

返回

一个表示当前操作的 Task 对象。

属性

适用于

UploadFromByteArrayAsync(Byte[], Int32, Int32, AccessCondition, FileRequestOptions, OperationContext, CancellationToken)

返回一个任务,该任务执行异步操作以将字节数组的内容上传到文件。 如果服务上已存在该文件,则会覆盖该文件。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task UploadFromByteArrayAsync (byte[] buffer, int index, int count, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.File.FileRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member UploadFromByteArrayAsync : byte[] * int * int * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.UploadFromByteArrayAsync : byte[] * int * int * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function UploadFromByteArrayAsync (buffer As Byte(), index As Integer, count As Integer, accessCondition As AccessCondition, options As FileRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task

参数

buffer
Byte[]

字节数组。

index
Int32

缓冲区中从零开始将字节上传到文件的字节偏移量。

count
Int32

要写入文件的字节数。

accessCondition
AccessCondition

一个表示文件访问条件的 AccessCondition 对象。

options
FileRequestOptions

一个 FileRequestOptions 对象,它指定请求的其他选项。

operationContext
OperationContext

一个 OperationContext 对象,它一个表示当前操作的上下文。

cancellationToken
CancellationToken

等待任务完成期间要观察的 CancellationToken

返回

一个表示当前操作的 Task 对象。

属性

适用于

UploadFromByteArrayAsync(Byte[], Int32, Int32, CancellationToken)

返回一个任务,该任务执行异步操作以将字节数组的内容上传到文件。 如果服务上已存在该文件,则会覆盖该文件。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task UploadFromByteArrayAsync (byte[] buffer, int index, int count, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member UploadFromByteArrayAsync : byte[] * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.UploadFromByteArrayAsync : byte[] * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function UploadFromByteArrayAsync (buffer As Byte(), index As Integer, count As Integer, cancellationToken As CancellationToken) As Task

参数

buffer
Byte[]

字节数组。

index
Int32

缓冲区中从零开始将字节上传到文件的字节偏移量。

count
Int32

要写入文件的字节数。

cancellationToken
CancellationToken

等待任务完成期间要观察的 CancellationToken

返回

一个表示当前操作的 Task 对象。

属性

适用于

UploadFromByteArrayAsync(Byte[], Int32, Int32)

返回一个任务,该任务执行异步操作以将字节数组的内容上传到文件。 如果服务上已存在该文件,则会覆盖该文件。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task UploadFromByteArrayAsync (byte[] buffer, int index, int count);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member UploadFromByteArrayAsync : byte[] * int * int -> System.Threading.Tasks.Task
override this.UploadFromByteArrayAsync : byte[] * int * int -> System.Threading.Tasks.Task
Public Overridable Function UploadFromByteArrayAsync (buffer As Byte(), index As Integer, count As Integer) As Task

参数

buffer
Byte[]

字节数组。

index
Int32

缓冲区中从零开始将字节上传到文件的字节偏移量。

count
Int32

要写入文件的字节数。

返回

一个表示当前操作的 Task 对象。

属性

适用于

UploadFromByteArrayAsync(Byte[], Int32, Int32, AccessCondition, FileRequestOptions, OperationContext)

返回一个任务,该任务执行异步操作以将字节数组的内容上传到文件。 如果服务上已存在该文件,则会覆盖该文件。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task UploadFromByteArrayAsync (byte[] buffer, int index, int count, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.File.FileRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member UploadFromByteArrayAsync : byte[] * int * int * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task
override this.UploadFromByteArrayAsync : byte[] * int * int * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task
Public Overridable Function UploadFromByteArrayAsync (buffer As Byte(), index As Integer, count As Integer, accessCondition As AccessCondition, options As FileRequestOptions, operationContext As OperationContext) As Task

参数

buffer
Byte[]

字节数组。

index
Int32

缓冲区中从零开始将字节上传到文件的字节偏移量。

count
Int32

要写入文件的字节数。

accessCondition
AccessCondition

一个表示文件访问条件的 AccessCondition 对象。

options
FileRequestOptions

一个 FileRequestOptions 对象,它指定请求的其他选项。

operationContext
OperationContext

一个 OperationContext 对象,它一个表示当前操作的上下文。

返回

一个表示当前操作的 Task 对象。

属性

适用于