DataLakeFileScheduleDeletionOptions Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DataLakeFileScheduleDeletionOptions() |
Constructor. If the file was scheduled for deletetion, the deletion will be cancelled. |
DataLakeFileScheduleDeletionOptions(Nullable<DateTimeOffset>) |
Constructor. Sets the DateTimeOffset when the file will be deleted. |
DataLakeFileScheduleDeletionOptions(TimeSpan, DataLakeFileExpirationOrigin) |
Constructor. Sets time when the file will be deleted, relative to the file creation time or the current time. |
DataLakeFileScheduleDeletionOptions()
Constructor. If the file was scheduled for deletetion, the deletion will be cancelled.
public DataLakeFileScheduleDeletionOptions ();
Public Sub New ()
Applies to
DataLakeFileScheduleDeletionOptions(Nullable<DateTimeOffset>)
Constructor. Sets the DateTimeOffset when the file will be deleted.
public DataLakeFileScheduleDeletionOptions (DateTimeOffset? expiresOn);
new Azure.Storage.Files.DataLake.Models.DataLakeFileScheduleDeletionOptions : Nullable<DateTimeOffset> -> Azure.Storage.Files.DataLake.Models.DataLakeFileScheduleDeletionOptions
Public Sub New (expiresOn As Nullable(Of DateTimeOffset))
Parameters
- expiresOn
- Nullable<DateTimeOffset>
The DateTimeOffset when the file will be deleted. If null, if the file was already scheduled for deletion, the deletion will be cancelled.
Applies to
DataLakeFileScheduleDeletionOptions(TimeSpan, DataLakeFileExpirationOrigin)
Constructor. Sets time when the file will be deleted, relative to the file creation time or the current time.
public DataLakeFileScheduleDeletionOptions (TimeSpan timeToExpire, Azure.Storage.Files.DataLake.Models.DataLakeFileExpirationOrigin setRelativeTo);
new Azure.Storage.Files.DataLake.Models.DataLakeFileScheduleDeletionOptions : TimeSpan * Azure.Storage.Files.DataLake.Models.DataLakeFileExpirationOrigin -> Azure.Storage.Files.DataLake.Models.DataLakeFileScheduleDeletionOptions
Public Sub New (timeToExpire As TimeSpan, setRelativeTo As DataLakeFileExpirationOrigin)
Parameters
- timeToExpire
- TimeSpan
Duration before file will be deleted.
- setRelativeTo
- DataLakeFileExpirationOrigin
Specifies if TimeToExpire should be set relative to the file's creation time, or the current time. Defaults to current time.
Applies to
Azure SDK for .NET