Export (0) Print
Expand All

My.Computer.FileSystem.SpecialDirectories.MyDocuments Property

Gets a path name pointing to the My Documents directory.

' Usage
Dim value As String = My.Computer.FileSystem.SpecialDirectories.MyDocuments
' Declaration
Public ReadOnly Property MyDocuments As String

The following condition may cause an exception:

The My.Computer.FileSystem.SpecialDirectories Object contains paths to commonly referenced directories.

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

MsgBox(My.Computer.FileSystem.SpecialDirectories.MyDocuments)

Namespace: Microsoft.VisualBasic.MyServices

Class: SpecialDirectoriesProxy (provides access to SpecialDirectories)

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

The following permission is required:

Permission

Description

FileIOPermission

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

For more information, see Code Access Security and Requesting Permissions.

Community Additions

ADD
Show:
© 2014 Microsoft