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

CloudBlockBlob.BeginUploadFromStream 方法

定义

重载

BeginUploadFromStream(Stream, Int64, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

开始异步操作,将流上传到块 Blob。 如果 Blob 已存在,则会覆盖该 Blob。

BeginUploadFromStream(Stream, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

开始异步操作,将流上传到块 Blob。 如果 Blob 已存在,则会覆盖该 Blob。

BeginUploadFromStream(Stream, AsyncCallback, Object)

开始异步操作,将流上传到块 Blob。 如果 Blob 已存在,则会覆盖该 Blob。

BeginUploadFromStream(Stream, Int64, AsyncCallback, Object)

开始异步操作,将流上传到块 Blob。 如果 Blob 已存在,则会覆盖该 Blob。

BeginUploadFromStream(Stream, Int64, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

开始异步操作,将流上传到块 Blob。 如果 Blob 已存在,则会覆盖该 Blob。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual Microsoft.Azure.Storage.ICancellableAsyncResult BeginUploadFromStream (System.IO.Stream source, long length, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.Blob.BlobRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, AsyncCallback callback, object state);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member BeginUploadFromStream : System.IO.Stream * int64 * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
override this.BeginUploadFromStream : System.IO.Stream * int64 * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
Public Overridable Function BeginUploadFromStream (source As Stream, length As Long, accessCondition As AccessCondition, options As BlobRequestOptions, operationContext As OperationContext, callback As AsyncCallback, state As Object) As ICancellableAsyncResult

参数

source
Stream

提供 Stream Blob 内容的对象。

length
Int64

要从源流中当前位置写入的字节数。

accessCondition
AccessCondition

一个 AccessCondition 对象,表示继续处理请求而必须满足的条件。 如果为 null,则不使用任何条件。

options
BlobRequestOptions

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

operationContext
OperationContext

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

callback
AsyncCallback

AsyncCallback 异步操作完成时接收通知的委托。

state
Object

将传递给回调委托的用户定义对象。

返回

引用 ICancellableAsyncResult 异步操作的 。

实现

属性

适用于

BeginUploadFromStream(Stream, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

开始异步操作,将流上传到块 Blob。 如果 Blob 已存在,则会覆盖该 Blob。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual Microsoft.Azure.Storage.ICancellableAsyncResult BeginUploadFromStream (System.IO.Stream source, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.Blob.BlobRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, AsyncCallback callback, object state);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member BeginUploadFromStream : System.IO.Stream * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
override this.BeginUploadFromStream : System.IO.Stream * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
Public Overridable Function BeginUploadFromStream (source As Stream, accessCondition As AccessCondition, options As BlobRequestOptions, operationContext As OperationContext, callback As AsyncCallback, state As Object) As ICancellableAsyncResult

参数

source
Stream

提供 Stream Blob 内容的对象。

accessCondition
AccessCondition

一个 AccessCondition 对象,表示继续处理请求而必须满足的条件。 如果为 null,则不使用任何条件。

options
BlobRequestOptions

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

operationContext
OperationContext

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

callback
AsyncCallback

AsyncCallback 异步操作完成时接收通知的委托。

state
Object

将传递给回调委托的用户定义对象。

返回

引用 ICancellableAsyncResult 异步操作的 。

实现

属性

适用于

BeginUploadFromStream(Stream, AsyncCallback, Object)

开始异步操作,将流上传到块 Blob。 如果 Blob 已存在,则会覆盖该 Blob。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual Microsoft.Azure.Storage.ICancellableAsyncResult BeginUploadFromStream (System.IO.Stream source, AsyncCallback callback, object state);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member BeginUploadFromStream : System.IO.Stream * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
override this.BeginUploadFromStream : System.IO.Stream * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
Public Overridable Function BeginUploadFromStream (source As Stream, callback As AsyncCallback, state As Object) As ICancellableAsyncResult

参数

source
Stream

提供 Stream Blob 内容的对象。

callback
AsyncCallback

AsyncCallback 异步操作完成时接收通知的委托。

state
Object

将传递给回调委托的用户定义对象。

返回

引用 ICancellableAsyncResult 异步操作的 。

实现

属性

适用于

BeginUploadFromStream(Stream, Int64, AsyncCallback, Object)

开始异步操作,将流上传到块 Blob。 如果 Blob 已存在,则会覆盖该 Blob。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual Microsoft.Azure.Storage.ICancellableAsyncResult BeginUploadFromStream (System.IO.Stream source, long length, AsyncCallback callback, object state);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member BeginUploadFromStream : System.IO.Stream * int64 * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
override this.BeginUploadFromStream : System.IO.Stream * int64 * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
Public Overridable Function BeginUploadFromStream (source As Stream, length As Long, callback As AsyncCallback, state As Object) As ICancellableAsyncResult

参数

source
Stream

提供 Stream Blob 内容的对象。

length
Int64

要从源流中当前位置写入的字节数。

callback
AsyncCallback

AsyncCallback 异步操作完成时接收通知的委托。

state
Object

将传递给回调委托的用户定义对象。

返回

引用 ICancellableAsyncResult 异步操作的 。

实现

属性

适用于