Skip to main content

StorageItemProperties Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Provides access to the content-related properties of an item (like a file or folder).

public class StorageItemProperties

Inheritance: object -> StorageItemProperties

Constructors​

NameDescription
StorageItemPropertiesNo summary available.

StorageItemProperties Constructor​

public StorageItemProperties(Nullable<ulong> size, Nullable<DateTimeOffset> dateCreated, Nullable<DateTimeOffset> dateModified)

Parameters​

size Nullable<ulong>

dateCreated Nullable<DateTimeOffset>

dateModified Nullable<DateTimeOffset>

Properties​

NameDescription
DateCreatedGets the date and time that the current folder was created.
DateModifiedGets the date and time of the last time the file was modified.
SizeGets the size of the file in bytes.

DateCreated Property​

Gets the date and time that the current folder was created.

public Nullable<DateTimeOffset> DateCreated { get; set; }

Remarks​

Can be null if property is not available.

DateModified Property​

Gets the date and time of the last time the file was modified.

public Nullable<DateTimeOffset> DateModified { get; set; }

Remarks​

Can be null if property is not available.

Size Property​

Gets the size of the file in bytes.

public Nullable<ulong> Size { get; set; }

Remarks​

Can be null if property is not available.