Share via


DataLakeStoreFileSystemClient.SetExpiry Method

Definition

Sets the expiry time of the file. If expiry option is not specified then tries to guess the option based on timeToSet value.

public Microsoft.Azure.DataLake.Store.DirectoryEntry SetExpiry (string path, string accountName, long timeToSet, Microsoft.Azure.DataLake.Store.ExpiryOption? exop = default);
member this.SetExpiry : string * string * int64 * Nullable<Microsoft.Azure.DataLake.Store.ExpiryOption> -> Microsoft.Azure.DataLake.Store.DirectoryEntry
Public Function SetExpiry (path As String, accountName As String, timeToSet As Long, Optional exop As Nullable(Of ExpiryOption) = Nothing) As DirectoryEntry

Parameters

path
String

Path

accountName
String

Account name

timeToSet
Int64

Time to set

exop
Nullable<ExpiryOption>

ExpiryOption

Returns

FileStatus after setting the expiry

Applies to