Dela via


BlobBaseClient.SetHttpHeaders Method

Definition

The SetHttpHeaders(BlobHttpHeaders, BlobRequestConditions, CancellationToken) operation sets system properties on the blob.

For more information, see Set Blob Properties.

public virtual Azure.Response<Azure.Storage.Blobs.Models.BlobInfo> SetHttpHeaders (Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = default, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SetHttpHeaders : Azure.Storage.Blobs.Models.BlobHttpHeaders * Azure.Storage.Blobs.Models.BlobRequestConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobInfo>
override this.SetHttpHeaders : Azure.Storage.Blobs.Models.BlobHttpHeaders * Azure.Storage.Blobs.Models.BlobRequestConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobInfo>
Public Overridable Function SetHttpHeaders (Optional httpHeaders As BlobHttpHeaders = Nothing, Optional conditions As BlobRequestConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BlobInfo)

Parameters

httpHeaders
BlobHttpHeaders

Optional. The standard HTTP header system properties to set. If not specified, existing values will be cleared.

conditions
BlobRequestConditions

Optional BlobRequestConditions to add conditions on setting the blob's HTTP headers.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response<T> describing the updated blob.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to