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
ContentsString
Gets the contents of the file as a string.
public string ContentsString { get; }
Property Value
CreationDate
Gets or sets the date and time on which this file was created.
public DateTime CreationDate { get; set; }
Property Value
Description
Gets or sets the description of the file. This field is optional.
public string Description { get; set; }
Property Value
FileName
Gets or sets the actual file name - for example "data.xml".
public string FileName { get; set; }
Property Value
FileSize
Gets or sets the size of the file in bytes.
public ulong FileSize { get; set; }
Property Value
FileSizeString
Gets the file size in a human readable format.
public string FileSizeString { get; }
Property Value
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
FullPath
Gets or sets the absolute path to the file including the drive letter.
public string FullPath { get; set; }
Property Value
Hash
Gets or sets the optional hash for the file.
public WindowsFileHash Hash { get; set; }
Property Value
IsCompressed
Gets or sets whether this file is compressed.
public BooleanOption IsCompressed { get; set; }
Property Value
IsEncrypted
Gets or sets whether this file is encrypted.
public BooleanOption IsEncrypted { get; set; }
Property Value
IsHidden
Gets or sets whether the file is hidden.
public BooleanOption IsHidden { get; set; }
Property Value
IsReadOnly
Gets or sets whether this file is read-only.
public BooleanOption IsReadOnly { get; set; }
Property Value
LastAccessed
Gets or sets the date and time on which this file was last accessed.
public DateTime LastAccessed { get; set; }
Property Value
LastModified
Gets or sets the date and time on which this file was last modified.
public DateTime LastModified { get; set; }
Property Value
Security
Gets or sets the NTFS permissions assigned to this file.
public NtfsSecurityDescriptor Security { get; set; }
Property Value
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
Methods
FromXml(string)
Returns a CENTREL.XIA.Configuration.Types.WindowsFileInformation class from the specified XML.
public static WindowsFileInformation FromXml(string xml)
Parameters
xml
stringThe 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.