Share via


AdlsClient.SetExpiryTime Method

Definition

Synchronously sets the expiry time

public virtual void SetExpiryTime (string path, Microsoft.Azure.DataLake.Store.ExpiryOption eopt, long expiryTime, System.Threading.CancellationToken cancelToken = default);
abstract member SetExpiryTime : string * Microsoft.Azure.DataLake.Store.ExpiryOption * int64 * System.Threading.CancellationToken -> unit
override this.SetExpiryTime : string * Microsoft.Azure.DataLake.Store.ExpiryOption * int64 * System.Threading.CancellationToken -> unit
Public Overridable Sub SetExpiryTime (path As String, eopt As ExpiryOption, expiryTime As Long, Optional cancelToken As CancellationToken = Nothing)

Parameters

path
String

Path of the file

eopt
ExpiryOption

Different type of expiry method for example: never expire, relative to now, etc that defines how to evaluate expiryTime

expiryTime
Int64

Expiry time value in milliseconds. It's interpretation depends on what ExpiryOption user passes

cancelToken
CancellationToken

CancellationToken to cancel the request

Applies to