Azure CloudBlockBlob PutBlock Method

Download Azure Cloud Connect Setup File
Download Azure Cloud Connect Zip File

Uploads a single block.

[Microsoft.Azure.Storage.DoesServiceRequest]  
public virtual void PutBlock (string blockId, System.IO.Stream blockData, 
Microsoft.Azure.Storage.Shared.Protocol.Checksum contentChecksum, 
Microsoft.Azure.Storage.AccessCondition accessCondition = default, 
Microsoft.Azure.Storage.Blob.BlobRequestOptions options = default, 
Microsoft.Azure.Storage.OperationContext operationContext = default);

Parameters

blockId
String

A Base64-encoded string that identifies the block.

blockData
Stream

Stream object that provides the data for the block.

contentChecksum
Checksum

A hash value used to ensure transactional integrity. May be null or Checksum.None

accessCondition
AccessCondition

An AccessCondition object that represents the condition that must be met in order for the request to proceed. If null, no condition is used.

options
BlobRequestOptions

BlobRequestOptions object that specifies additional options for the request. If null, default options are applied to the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Attributes

Remarks

Clients may send the content checksum headers for a given operation as a means to ensure transactional integrity over the wire. The contentChecksum parameter permits clients who already have access to a pre-computed checksum value for a given byte range to provide it. If the BlobRequestOptions.UseTransactionalMd5 or BlobRequestOptions.UseTransactionalCrc64 properties are set to true and the corresponding content parameter is set to null, then the client library will calculate the checksum value internally.