Share via


ShareDirectoryClient.SetHttpHeaders Method

Definition

The SetHttpHeaders(ShareDirectorySetHttpHeadersOptions, CancellationToken) operation sets system properties on the directory.

For more information, see Set Directory Properties.

public virtual Azure.Response<Azure.Storage.Files.Shares.Models.ShareDirectoryInfo> SetHttpHeaders (Azure.Storage.Files.Shares.Models.ShareDirectorySetHttpHeadersOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SetHttpHeaders : Azure.Storage.Files.Shares.Models.ShareDirectorySetHttpHeadersOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Files.Shares.Models.ShareDirectoryInfo>
override this.SetHttpHeaders : Azure.Storage.Files.Shares.Models.ShareDirectorySetHttpHeadersOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Files.Shares.Models.ShareDirectoryInfo>
Public Overridable Function SetHttpHeaders (Optional options As ShareDirectorySetHttpHeadersOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ShareDirectoryInfo)

Parameters

options
ShareDirectorySetHttpHeadersOptions

Optional parameters.

cancellationToken
CancellationToken

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

Returns

A Response<T> describing the state of the file.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to