Dela via


My.Computer.FileSystem.SpecialDirectories.MyPictures Property

Gets a path name pointing to the My Pictures directory.

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

Property Value

String.

Exceptions

The following condition may cause an exception:

Remarks

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

Example

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

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

Requirements

Namespace:Microsoft.VisualBasic.MyServices

Class:SpecialDirectoriesProxy (provides access to SpecialDirectories)

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

Permissions

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.

See Also

Reference

My.Computer.FileSystem.SpecialDirectories Object

SpecialDirectories.MyPictures