MyMusic Property

SpecialDirectories.MyMusic Property


Gets a path name pointing to the My Music directory.

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

public static string MyMusic { get; }

Property Value

Type: System.String

The path to the My Music 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 Music 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
© 2015 Microsoft