SpecialDirectories.MyDocuments Property


Gets a path name pointing to the My Documents directory.

Namespace:   Microsoft.VisualBasic.FileIO
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public static string MyDocuments { get; }

Property Value

Type: System.String

The path to the My Documents directory.

Exception Condition

The path is empty, usually because the operating system does not support the directory.

The SpecialDirectories object contains paths to commonly referenced directories.

This example displays the path for the My Documents directory in a MessageBox.



Controls access to system and user environment variables. Associated enumeration: Unrestricted.


Controls the ability to access files and folders. Associated enumeration: Unrestricted.

.NET Framework
Available since 2.0
Return to top