Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

MyPictures Property

Location

My.Computer .FileSystem.SpecialDirectories.MyPictures

Syntax

Dim result As String = My.Computer.FileSystem. _ SpecialDirectories.MyPictures

Description

The MyPictures property returns the full path name to the "My Pictures" folder for the current user on the local workstation. Usually, this directory is found at C:\Documents and Settings\user\My Documents\My Pictures, but it may vary from system to system.

Usage at a Glance

  • This property is read-only.

  • This folder contains image and multimedia files.

  • This path may not be defined in some cases. In such cases, use of this property generates an exception.

  • The returned path will never have a backslash "\" character at the end.

Related Framework Entries

  • Microsoft.VisualBasic.MyServices.SpecialDirectoriesProxy.MyPictures Property

  • Microsoft.VisualBasic.FileIO.SpecialDirectories.MyPictures Property

See Also

AllUsersApplicationData Property, CurrentUserApplicationData Property, Desktop Property, MyDocuments Property, MyMusic Property, ProgramFiles Property, Programs Property, SpecialDirectories Object, Temp Property

Категории