Table of Contents

Class WindowsFileSystemPaths

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

Represents the well known file system paths on a Windows machine.

public class WindowsFileSystemPaths : BypassSection
Inheritance
WindowsFileSystemPaths
Inherited Members

Constructors

WindowsFileSystemPaths()

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

public WindowsFileSystemPaths()

Properties

AllUsersProfile

Gets the path to the all users profile %AllUsersProfile% - for example "C:\ProgramData". This setting is only available on Windows 7, Windows 2008 R2, and above.

public string AllUsersProfile { get; set; }

Property Value

string

CommonProgramFiles

Gets or sets the path to the common program files directory - for example "C:\Program Files\Common Files".

public string CommonProgramFiles { get; set; }

Property Value

string

ProgramData

Gets or sets the path to the program data directory - for example "C:\ProgramData". This setting is only available on Windows 7, Windows 2008 R2, and above.

public string ProgramData { get; set; }

Property Value

string

ProgramFiles

Gets or sets the path to the program files directory - for example "C:\Program Files".

public string ProgramFiles { get; set; }

Property Value

string

ProgramFilesx86

Gets or sets the path to the program files x86 directory - for example "C:\Program Files (x86)". This only applies to 64bit machines.

public string ProgramFilesx86 { get; set; }

Property Value

string

SystemDrive

Gets the path to the system drive on the remote machine - for example "C:".

public string SystemDrive { get; set; }

Property Value

string

SystemRoot

Gets or sets the path to the system root on the remote machine - for example "C:\windows".

public string SystemRoot { get; set; }

Property Value

string

Methods

ExpandSystemVariables(string)

Resolves any system variables found within the specified path.

public string ExpandSystemVariables(string path)

Parameters

path string

The path to expand - for example "%SystemDrive%\inetpub\wwwroot".

Returns

string

The specified path with the environmental variables expanded.

ToDetailedString()

Returns the file system paths as a human readable string.

public string ToDetailedString()

Returns

string

The file system paths as a human readable string.

ToString()

Returns the file system paths as a human readable string.

public override string ToString()

Returns

string

The file system paths as a human readable string.