Table of Contents

Class WindowsFileInformation

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents information for a file on a Windows based computer system.

public class WindowsFileInformation : BypassSection
Inheritance
WindowsFileInformation
Inherited Members

Constructors

WindowsFileInformation()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsFileInformation class.

public WindowsFileInformation()

Properties

Contents

Gets or sets the contents of the file.

public WindowsFileContents Contents { get; set; }

Property Value

WindowsFileContents

ContentsString

Gets the contents of the file as a string.

public string ContentsString { get; }

Property Value

string

CreationDate

Gets or sets the date and time on which this file was created.

public DateTime CreationDate { get; set; }

Property Value

DateTime

Description

Gets or sets the description of the file. This field is optional.

public string Description { get; set; }

Property Value

string

FileName

Gets or sets the actual file name - for example "data.xml".

public string FileName { get; set; }

Property Value

string

FileSize

Gets or sets the size of the file in bytes.

public ulong FileSize { get; set; }

Property Value

ulong

FileSizeString

Gets the file size in a human readable format.

public string FileSizeString { get; }

Property Value

string

FileType

Gets or sets a human readable description of the specified file type - for example "Shockwave Flash Object".

public string FileType { get; set; }

Property Value

string

FullPath

Gets or sets the absolute path to the file including the drive letter.

public string FullPath { get; set; }

Property Value

string

Hash

Gets or sets the optional hash for the file.

public WindowsFileHash Hash { get; set; }

Property Value

WindowsFileHash

IsCompressed

Gets or sets whether this file is compressed.

public BooleanOption IsCompressed { get; set; }

Property Value

BooleanOption

IsEncrypted

Gets or sets whether this file is encrypted.

public BooleanOption IsEncrypted { get; set; }

Property Value

BooleanOption

IsHidden

Gets or sets whether the file is hidden.

public BooleanOption IsHidden { get; set; }

Property Value

BooleanOption

IsReadOnly

Gets or sets whether this file is read-only.

public BooleanOption IsReadOnly { get; set; }

Property Value

BooleanOption

LastAccessed

Gets or sets the date and time on which this file was last accessed.

public DateTime LastAccessed { get; set; }

Property Value

DateTime

LastModified

Gets or sets the date and time on which this file was last modified.

public DateTime LastModified { get; set; }

Property Value

DateTime

Security

Gets or sets the NTFS permissions assigned to this file.

public NtfsSecurityDescriptor Security { get; set; }

Property Value

NtfsSecurityDescriptor

Version

Gets or sets the version of this file where applicable. If a version cannot exist for a specific file type this returns an empty string.

public string Version { get; set; }

Property Value

string

Methods

FromXml(string)

Returns a CENTREL.XIA.Configuration.Types.WindowsFileInformation class from the specified XML.

public static WindowsFileInformation FromXml(string xml)

Parameters

xml string

The XML representation of the object.

Returns

WindowsFileInformation

A CENTREL.XIA.Configuration.Types.WindowsFileInformation class.

ToString()

Returns the file as a human readable string.

public override string ToString()

Returns

string

The file as a human readable string.