你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DataLakeServiceClient.SetPropertiesAsync 方法

定义

SetPropertiesAsync(DataLakeServiceProperties, CancellationToken)操作为存储帐户的 Data Lake 服务终结点设置属性,包括存储分析、CORS (跨域资源共享的属性) 规则和软删除设置。 也可以使用此操作为未指定版本的所有 BLOB 服务传入请求设置默认请求版本。

有关详细信息,请参阅 设置 Blob 服务属性

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

参数

properties
DataLakeServiceProperties

Data Lake 服务属性。

cancellationToken
CancellationToken

可选 CancellationToken ,用于传播应取消操作的通知。

返回

描述 Response 服务属性的 。

注解

RequestFailedException如果失败,将引发 。

适用于