Class FileMetadata
Holds data about a file.
Inherited Members
Namespace: Microsoft.XboxStudios.DeviceConsole.Environments.File
Assembly: DeviceConsole.Environments.dll
Syntax
public class FileMetadata
Constructors
View SourceFileMetadata(string, string, string)
Initializes a new instance of the FileMetadata class.
Declaration
public FileMetadata(string name, string fullPath, string folder)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the file. |
string | fullPath | The path of the file. |
string | folder | The folder of the file. |
Properties
View SourceCreated
Gets or sets the date the file was created.
Declaration
public DateTimeOffset Created { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
Folder
Gets the folder of the file.
Declaration
public string Folder { get; }
Property Value
Type | Description |
---|---|
string |
FullPath
Gets the path of the file.
Declaration
public string FullPath { get; }
Property Value
Type | Description |
---|---|
string |
IsFolder
Gets or sets a value indicating whether this file is a folder or not.
Declaration
public bool IsFolder { get; set; }
Property Value
Type | Description |
---|---|
bool |
Name
Gets the name of the file.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Size
Gets or sets the size of the file in bytes.
Declaration
public long Size { get; set; }
Property Value
Type | Description |
---|---|
long |