AppendBlobClient.AppendBlock Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The AppendBlock(Stream, AppendBlobAppendBlockOptions, CancellationToken) operation commits a new block
of data, represented by the content
Stream,
to the end of the existing append blob. The AppendBlock(Stream, AppendBlobAppendBlockOptions, CancellationToken)
operation is only permitted if the blob was created as an append
blob.
For more information, see Append Block.
public virtual Azure.Response<Azure.Storage.Blobs.Models.BlobAppendInfo> AppendBlock (System.IO.Stream content, Azure.Storage.Blobs.Models.AppendBlobAppendBlockOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AppendBlock : System.IO.Stream * Azure.Storage.Blobs.Models.AppendBlobAppendBlockOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobAppendInfo>
override this.AppendBlock : System.IO.Stream * Azure.Storage.Blobs.Models.AppendBlobAppendBlockOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobAppendInfo>
Public Overridable Function AppendBlock (content As Stream, Optional options As AppendBlobAppendBlockOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BlobAppendInfo)
Parameters
- options
- AppendBlobAppendBlockOptions
Optional parameters.
- cancellationToken
- CancellationToken
Optional CancellationToken to propagate notifications that the operation should be cancelled.
Returns
A Response<T> describing the state of the updated append blob.
Remarks
A RequestFailedException will be thrown if a failure occurs.