EnvironmentFolders Class

Provides access to special environment folders and their directory paths.

Definition

Namespace: DevCase.Core.Windows.Common
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class EnvironmentFolders
Inheritance
Object    EnvironmentFolders

Properties

AdminToolsDirectory Gets the file system directory that is used to store administrative tools for an individual user.

The Microsoft Management Console (MMC) will save customized consoles to this directory, and it will roam with the user.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools'

AdminToolsPath Gets the full path to the file system directory that is used to store administrative tools for an individual user.

The Microsoft Management Console (MMC) will save customized consoles to this directory, and it will roam with the user.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools'

ApplicationDataDirectory Gets the directory that serves as a common repository for application-specific data for the current roaming user.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming'

ApplicationDataPath Gets the full path to the directory that serves as a common repository for application-specific data for the current roaming user.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming'

CDBurningDirectory Gets the file system directory that acts as a staging area for files waiting to be written to a CD.

Typically: 'C:\Users\{USERNAME}\AppData\Local\Microsoft\Windows\Burn\Burn'

CDBurningPath Gets the full path to the file system directory that acts as a staging area for files waiting to be written to a CD.

Typically: 'C:\Users\{USERNAME}\AppData\Local\Microsoft\Windows\Burn\Burn'

CommonAdminToolsDirectory Gets the file system directory that contains administrative tools for all users of the compute.

Typically: 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools'

CommonAdminToolsPath Gets the full path to the file system directory that contains administrative tools for all users of the computer.

Typically: 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools'

CommonApplicationDataDirectory Gets the directory that serves as a common repository for application-specific data that is used by all users.

Typically: 'C:\ProgramData'

CommonApplicationDataPath Gets the full path to the directory that serves as a common repository for application-specific data that is used by all users.

Typically: 'C:\ProgramData'

CommonDesktopDirectory Gets the file system directory that contains files and folders that appear on the desktop for all users.

Typically: 'C:\Users\Public\Desktop'

CommonDesktopPath Gets the full path to the file system directory that contains files and folders that appear on the desktop for all users.

Typically: 'C:\Users\Public\Desktop'

CommonDocumentsDirectory Gets the file system directory that contains documents that are common to all users.

Typically: 'C:\Users\Public\Documents'

CommonDocumentsPath Gets the full path to the file system directory that contains documents that are common to all users.

Typically: 'C:\Users\Public\Documents'

CommonMusicDirectory Gets the file system directory that serves as a repository for music files common to all users.

Typically: 'C:\Users\Public\Music'

CommonMusicPath Gets the full path to the file system directory that serves as a repository for music files common to all users.

Typically: 'C:\Users\Public\Music'

CommonPicturesDirectory Gets the file system directory that serves as a repository for image files common to all users.

Typically: 'C:\Users\Public\Pictures'

CommonPicturesPath Gets the full path to the file system directory that serves as a repository for image files common to all users.

Typically: 'C:\Users\Public\Pictures'

CommonProgramFilesDirectory Gets the the directory for components that are shared across applications.

Typically: 'C:\Program Files\Common Files'

CommonProgramFilesPath Gets the full path to the directory for components that are shared across applications.

Typically: 'C:\Program Files\Common Files'

CommonProgramFilesX86Directory Gets the the Program Files folder.

Typically: 'C:\Program Files (x86)\Common Files'

CommonProgramFilesX86Path Gets the full path to the Program Files folder.

Typically: 'C:\Program Files (x86)\Common Files'

CommonProgramsDirectory Gets the folder for components that are shared across applications.

Typically: 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs'

CommonProgramsPath Gets the full path to the folder for components that are shared across applications.

Typically: 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs'

CommonStartMenuDirectory Gets the file system directory that contains the programs and folders that appear on the Start menu for all users.

Typically: 'C:\ProgramData\Microsoft\Windows\Start Menu'

CommonStartMenuPath Gets the full path to the file system directory that contains the programs and folders that appear on the Start menu for all users.

Typically: 'C:\ProgramData\Microsoft\Windows\Start Menu'

CommonStartupDirectory Gets the file system directory that contains the programs that appear in the Startup folder for all users.

Typically: 'C:\ProgramData\Microsoft\Windows\Start Menu'

CommonStartupPath Gets the full path to the file system directory that contains the programs that appear in the Startup folder for all users.

Typically: 'C:\ProgramData\Microsoft\Windows\Start Menu'

CommonTemplatesDirectory Gets the file system directory that contains the templates that are available to all users.

Typically: 'C:\ProgramData\Microsoft\Windows\Templates'

CommonTemplatesPath Gets the full path to the file system directory that contains the templates that are available to all users.

Typically: 'C:\ProgramData\Microsoft\Windows\Templates'

CommonVideosDirectory Gets the file system directory that serves as a repository for video files common to all users.

Typically: 'C:\Users\Public\Videos'

CommonVideosPath Gets the full path to the file system directory that serves as a repository for video files common to all users.

Typically: 'C:\Users\Public\Videos'

CookiesDirectory Gets the directory that serves as a common repository for Internet cookies.

Typically: 'C:\Users\{USERNAME}\AppData\Local\Microsoft\Windows\INetCookies'

CookiesPath Gets the full path to the directory that serves as a common repository for Internet cookies.

Typically: 'C:\Users\{USERNAME}\AppData\Local\Microsoft\Windows\INetCookies'

DesktopDirectory Gets the directory used to physically store file objects on the desktop.

Typically: 'C:\Users\{USERNAME}\Desktop'

DesktopPath Gets the full path to the directory used to physically store file objects on the desktop.

Typically: 'C:\Users\{USERNAME}\Desktop'

FavoritesDirectory Gets the directory that serves as a common repository for the user's favorite items.

Typically: 'C:\Users\{USERNAME}\Favorites'

FavoritesPath Gets the full path to the directory that serves as a common repository for the user's favorite items.

Typically: 'C:\Users\{USERNAME}\Favorites'

FontsDirectory Gets the virtual folder that contains fonts.

Typically: 'C:\Windows\Fonts'

FontsPath Gets the full path to the virtual folder that contains fonts.

Typically: 'C:\Windows\Fonts'

HistoryDirectory Gets the directory that serves as a common repository for Internet history items.

Typically: 'C:\Users\{USERNAME}\AppData\Local\Microsoft\Windows\History'

HistoryPath Gets the full path to the directory that serves as a common repository for Internet history items.

Typically: 'C:\Users\{USERNAME}\AppData\Local\Microsoft\Windows\History'

InternetCacheDirectory Gets the directory that serves as a common repository for temporary Internet files.

Typically: 'C:\Users\{USERNAME}\AppData\Local\Microsoft\Windows\INetCache'

InternetCachePath Gets the full path to the directory that serves as a common repository for temporary Internet files.

Typically: 'C:\Users\{USERNAME}\AppData\Local\Microsoft\Windows\INetCache'

LocalApplicationDataDirectory Gets the directory that serves as a common repository for application-specific data that is used by the current, non-roaming user.

Typically: 'C:\Users\{USERNAME}\AppData\Local'

LocalApplicationDataPath Gets the full path to the directory that serves as a common repository for application-specific data that is used by the current, non-roaming user.

Typically: 'C:\Users\{USERNAME}\AppData\Local'

LocalizedResourcesDirectory Gets the file system directory that contains localized resource data.
LocalizedResourcesPath Gets the full path to the file system directory that contains localized resource data.
MyDocumentsDirectory Gets the My Documents folder.

Typically: 'C:\Users\{USERNAME}\Documents'

MyDocumentsPath Gets the full path to the My Documents folder.

Typically: 'C:\Users\{USERNAME}\Documents'

MyMusicDirectory Gets the My Music folder.

Typically: 'C:\Users\{USERNAME}\Music'

MyMusicPath Gets the full path to the My Music folder.

Typically: 'C:\Users\{USERNAME}\Music'

MyPicturesDirectory Gets the My Pictures folder.

Typically: 'C:\Users\{USERNAME}\Pictures'

MyPicturesPath Gets the full path to the My Pictures folder.

Typically: 'C:\Users\{USERNAME}\Pictures'

MyVideosDirectory Gets the file system directory that serves as a repository for videos that belong to a user.

Typically: 'C:\Users\{USERNAME}\Videos'

MyVideosPath Gets the full path to the file system directory that serves as a repository for videos that belong to a user.

Typically: 'C:\Users\{USERNAME}\Videos'

NetworkShortcutsDirectory Gets the file system directory that contains the link objects that may exist in the My Network Places virtual folder.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Network Shortcuts'

NetworkShortcutsPath Gets the full path to the file system directory that contains the link objects that may exist in the My Network Places virtual folder.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Network Shortcuts'

PersonalDirectory Gets the directory that serves as a common repository for documents.

Typically: 'C:\Users\{USERNAME}\Documents'

PersonalPath Gets the full path to the directory that serves as a common repository for documents.

Typically: 'C:\Users\{USERNAME}\Documents'

PrinterShortcutsDirectory Gets the file system directory that contains the link objects that can exist in the Printers virtual folder.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Printer Shortcuts'

PrinterShortcutsPath Gets the full path to the file system directory that contains the link objects that can exist in the Printers virtual folder.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Printer Shortcuts'

ProgramFilesDirectory Gets the program files directory.

Typically: 'C:\Program Files'

ProgramFilesPath Gets the full path to the program files directory.

Typically: 'C:\Program Files'

ProgramFilesX86Directory Gets the x86 Program Files folder.

Typically: 'C:\Program Files (x86)'

ProgramFilesX86Path Gets the full path to the x86 Program Files folder.

Typically: 'C:\Program Files (x86)'

ProgramsDirectory Gets the directory that contains the user's program groups.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs'

ProgramsPath Gets the full path to the directory that contains the user's program groups.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs'

RecentDirectory Gets the directory that contains the user's most recently used documents.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Recent'

RecentPath Gets the full path to the directory that contains the user's most recently used documents.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Recent'

ResourcesDirectory Gets the file system directory that contains resource data.

Typically: 'C:\Windows\resources'

ResourcesPath Gets the full path to the file system directory that contains resource data.

Typically: 'C:\Windows\resources'

SendToDirectory Gets the directory that contains the Send To menu items.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\SendTo'

SendToPath Gets the full path to the directory that contains the Send To menu items.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\SendTo'

StartMenuDirectory Gets the directory that contains the Start menu items.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Start Menu'

StartMenuPath Gets the full path to the directory that contains the Start menu items.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Start Menu'

StartupDirectory Gets the directory that corresponds to the user's Startup program group.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup'

StartupPath Gets the full path to the directory that corresponds to the user's Startup program group.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup'

SystemDirectory Gets the System directory.

Typically: 'C:\Windows\System32'

SystemPath Gets the full path to the System directory.

Typically: 'C:\Windows\System32'

SystemX86Directory Gets the Windows System folder.

Typically: 'C:\Windows\SysWOW64'

SystemX86Path Gets the full path to the Windows System folder.

Typically: 'C:\Windows\SysWOW64'

TemplatesDirectory Gets the directory that serves as a common repository for document templates.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Templates'

TemplatesPath Gets the full path to the directory that serves as a common repository for document templates.

Typically: 'C:\Users\{USERNAME}\AppData\Roaming\Microsoft\Windows\Templates'

UserProfileDirectory Gets the user's profile folder.

Typically: 'C:\Users\{USERNAME}'

UserProfilePath Gets the full path to the user's profile folder.

Typically: 'C:\Users\{USERNAME}'

WindowsDirectory Gets the Windows directory or SYSROOT.

Typically: 'C:\Windows'

WindowsPath Gets the full path to Windows directory or SYSROOT.

Typically: 'C:\Windows'

Methods

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also