Gets a path name pointing to the Desktop directory.
' Usage Dim value As String = My.Computer.FileSystem.SpecialDirectories.Desktop ' Declaration Public ReadOnly Property Desktop As String
The following condition may cause an exception:
The path is empty, usually because the operating system does not support the directory (DirectoryNotFoundException).
The My.Computer.FileSystem.SpecialDirectories Object contains paths to commonly referenced directories.