Expand Minimize

Environment.SpecialFolder Enumeration

July 28, 2014

Specifies enumerated constants used to retrieve directory paths to system special folders.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Enumeration SpecialFolder

Member nameDescription
ApplicationDataThe directory that serves as a common repository for application-specific data for the current roaming user.

A roaming user works on more than one computer on a network. A roaming user's profile is kept on a server on the network and is loaded onto a system when the user logs on.

FavoritesThe directory that serves as a common repository for the user's favorite items.
PersonalThe directory that serves as a common repository for documents.
ProgramsThe directory that contains the user's program groups.
StartMenuThe directory that contains the Start menu items.
StartupThe directory that corresponds to the user's Startup program group.

The system starts these programs whenever a user logs on or starts Windows NT or later, or starts Windows 98.

The system special folders are folders such as Program Files, Programs, System, or Startup, which contain common information. Special folders are set by default by the system, or explicitly by the user, when installing a version of Windows.

The GetFolderPath method uses these enumerated constants to designate the special folder path to retrieve.

Version Notes

Windows Phone

This type is present to support the .NET Compact Framework infrastructure in Windows Phone, and it is not intended to be used in your application code.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft