Gets the path to the system special folder identified by the specified enumeration.
| C# | Visual Basic |
public static string GetFolderPath( EnvironmentHelper..::..SpecialFolder folder )
Public Shared Function GetFolderPath ( _ folder As EnvironmentHelper..::..SpecialFolder _ ) As String
- folder (EnvironmentHelper..::..SpecialFolder)
- An enumerated constant that identifies a system special folder.
The path to the specified system special folder, if that folder physically exists on your computer; otherwise, the empty string ("").
A folder will not physically exist if the operating system did not create it, the existing folder was deleted, or the folder is a virtual directory, such as My Computer, which does not correspond to a physical path.