Share via


BlobBaseClient.SetHttpHeadersAsync Method

Definition

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

For more information, see Set Blob Properties.

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