Udostępnij za pośrednictwem


My.Computer.FileSystem.SpecialDirectories Property

Gets an object that provides properties for accessing commonly referenced directories.

' Usage
Dim value As Microsoft.VisualBasic.MyServices.SpecialDirectoriesProxy = My.Computer.FileSystem.SpecialDirectories
' Declaration
Public ReadOnly Property SpecialDirectories As MyServices.SpecialDirectoriesProxy

Property Value

This property returns the My.Computer.FileSystem.SpecialDirectories Object for the computer.

Remarks

This property provides easy access to the My.Computer.FileSystem.SpecialDirectories Object.

Example

This example returns the file path for the user's Desktop directory and displays it.

Dim filePath As String
filePath = My.Computer.FileSystem.SpecialDirectories.Desktop
MsgBox(filePath)

Requirements

Namespace:Microsoft.VisualBasic.MyServices

Class:FileSystemProxy (provides access to FileSystem)

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

Availability by Project Type

Project type

Available

Windows Application

Yes

Class Library

Yes

Console Application

Yes

Windows Control Library

Yes

Web Control Library

Yes

Windows Service

Yes

Web Site

Yes

Permissions

No permissions are required.

See Also

Reference

My.Computer.FileSystem Object

My.Computer.FileSystem.SpecialDirectories Object