Udostępnij za pośrednictwem


DataLakeServiceClient.SetProperties Method

Definition

The SetProperties(DataLakeServiceProperties, CancellationToken) operation sets properties for a storage account’s Data Lake service endpoint, including properties for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft delete settings. You can also use this operation to set the default request version for all incoming requests to the Blob service that do not have a version specified.

For more information, see Set Blob Service Properties.

public virtual Azure.Response SetProperties (Azure.Storage.Files.DataLake.Models.DataLakeServiceProperties properties, System.Threading.CancellationToken cancellationToken = default);
abstract member SetProperties : Azure.Storage.Files.DataLake.Models.DataLakeServiceProperties * System.Threading.CancellationToken -> Azure.Response
override this.SetProperties : Azure.Storage.Files.DataLake.Models.DataLakeServiceProperties * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function SetProperties (properties As DataLakeServiceProperties, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

properties
DataLakeServiceProperties

The Data Lake service properties.

cancellationToken
CancellationToken

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

Returns

A Response describing the service properties.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to