BlobBaseClient.SetHttpHeaders 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 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.