FilePath.Path Property
Definition
- Namespace
- Sandcastle.Core
- Assembly
- Sandcastle.Core.dll
This is used to get or set the path to use.
public virtual string Path { get; set; }
Property Value
- string
When set, if the path is not rooted (a relative path), IsFixedPath is set to false. If rooted (an absolute path), it is not changed. This property always returns a fully qualified path but without any environment variable expansions.
If set to a null or empty string, the file path is cleared and is considered to be undefined.
Examples
FilePath path = new FilePath();
// Set it to a relative path
path.Path = @"..\..\Test.txt";
// Set it to an absolute path
path.Path = @"C:\My Documents\Info.doc";
// Set it to a path based on an environment variable
path.Path = @"%HOMEDRIVE%%HOMEPATH%\Favorites\*.*";
Dim path As New FilePath()
' Set it to a relative path
path.Path = "..\..\Test.txt"
' Set it to an absolute path
path.Path = "C:\My Documents\Info.doc"
' Set it to a path based on an environment variable
path.Path = "%HOMEDRIVE%%HOMEPATH%\Favorites\*.*"