public virtual string Path { get; set; }
Public Overridable Property Path As String
Get
Set
public:
virtual property String^ Path {
String^ get ();
void set (String^ value);
}
abstract Path : string with get, set
override Path : string with get, set
If set to a null or empty string, the file path is cleared and is considered to be undefined.
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\*.*"
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.