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

Core.SetExpiryTimeAsync 方法

定义

设置到期时间

public static System.Threading.Tasks.Task SetExpiryTimeAsync (string path, Microsoft.Azure.DataLake.Store.ExpiryOption opt, long expiryTime, Microsoft.Azure.DataLake.Store.AdlsClient client, Microsoft.Azure.DataLake.Store.RequestOptions req, Microsoft.Azure.DataLake.Store.OperationResponse resp, System.Threading.CancellationToken cancelToken = default);
static member SetExpiryTimeAsync : string * Microsoft.Azure.DataLake.Store.ExpiryOption * int64 * Microsoft.Azure.DataLake.Store.AdlsClient * Microsoft.Azure.DataLake.Store.RequestOptions * Microsoft.Azure.DataLake.Store.OperationResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function SetExpiryTimeAsync (path As String, opt As ExpiryOption, expiryTime As Long, client As AdlsClient, req As RequestOptions, resp As OperationResponse, Optional cancelToken As CancellationToken = Nothing) As Task

参数

path
String

文件的路径

opt
ExpiryOption

不同类型的过期方法,例如:永不过期、相对于现在,等等,用于定义如何评估 expiryTime

expiryTime
Int64

到期时间值。 交互取决于 ExpiryOption 用户传递的内容

client
AdlsClient

ADLS 客户端

req
RequestOptions

用于更改 Http 请求行为的选项

resp
OperationResponse

存储 Http 请求的响应/输出

cancelToken
CancellationToken

CancellationToken 取消请求

返回

适用于