Initiates an asynchronous operation to commit a new block of data to the end of the blob.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute] public virtual Task<long> AppendBlockAsync( Stream blockData, string contentMD5, CancellationToken cancellationToken )
public: [DoesServiceRequestAttribute] virtual Task<long long>^ AppendBlockAsync( Stream^ blockData, String^ contentMD5, CancellationToken cancellationToken )
[<DoesServiceRequestAttribute>] abstract AppendBlockAsync : blockData:Stream * contentMD5:string * cancellationToken:CancellationToken -> Task<int64> [<DoesServiceRequestAttribute>] override AppendBlockAsync : blockData:Stream * contentMD5:string * cancellationToken:CancellationToken -> Task<int64>
<DoesServiceRequestAttribute> Public Overridable Function AppendBlockAsync ( blockData As Stream, contentMD5 As String, cancellationToken As CancellationToken ) As Task(Of Long)
Parameters
- blockData
-
Type:
System.IO.StreamSystem.IO::Stream^System.IO.StreamSystem.IO.Stream
A Stream object that provides the data for the block.
- contentMD5
-
Type:
System.StringSystem::String^System.StringSystem.String
An optional hash value used to ensure transactional integrity for the block. May be null or an empty string.
- cancellationToken
-
Type:
System.Threading.CancellationTokenSystem.Threading::CancellationTokenSystem.Threading.CancellationTokenSystem.Threading.CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Return Value
Type: System.Threading.Tasks.Task<Int64>System.Threading.Tasks::Task<Int64>^System.Threading.Tasks.Task<Int64>System.Threading.Tasks.Task(Of Int64)A Task object that represents the asynchronous operation.
Remarks
Clients may send the Content-MD5 header for a given Put Block operation as a means to ensure transactional integrity over the wire. The contentMD5 parameter permits clients who already have access to a pre-computed MD5 value for a given byte range to provide it. If the P:BlobRequestOptions.UseTransactionalMd5Referenced topic's target id should not be empty. Article id: da8b1fe2-6397-40ab-8119-e332015e42a2, link: P:BlobRequestOptions.UseTransactionalMd5. property is set to true and the contentMD5 parameter is set to null, then the client library will calculate the MD5 value internally.