C# 클래스 NanoByte.Common.Storage.Locations

Provides easy access to platform-specific common directories for storing settings and application data.
Uses Environment.SpecialFolder on Windows and the freedesktop.org basedir spec (XDG) on Linux. See http://freedesktop.org/wiki/Standards/basedir-spec
파일 보기 프로젝트 열기: nano-byte/common

Private Properties

프로퍼티 타입 설명
CreateSecureMachineWideDir void
GetCacheDirPath string
GetEnvironmentVariable string
GetInstallBase string
GetInstalledFilePath string
GetIntegrationDirPath string
GetLoadConfigPaths IEnumerable
GetLoadDataPaths IEnumerable
GetSaveConfigPath string
GetSaveDataPath string
GetSaveSystemConfigPath string
Locations System

공개 메소드들

메소드 설명
OverrideInstallBase ( string path ) : void

Override the automatically determined InstallBase with a custom path.

Use with caution. Be aware of possible race conditions. Intended for unit testing, runtime relocation, etc..

비공개 메소드들

메소드 설명
CreateSecureMachineWideDir ( [ path ) : void

Creates a directory with ACLs that block write-access for regular users.

GetCacheDirPath ( [ appName, bool machineWide ) : string
GetEnvironmentVariable ( string variable, string defaultValue ) : string

Returns the value of an environment variable or a default value if it isn't set.

GetInstallBase ( ) : string
GetInstalledFilePath ( [ fileName ) : string
GetIntegrationDirPath ( [ appName, bool machineWide ) : string
GetLoadConfigPaths ( [ appName, bool isFile ) : IEnumerable
GetLoadDataPaths ( [ appName, bool isFile ) : IEnumerable
GetSaveConfigPath ( [ appName, bool isFile ) : string
GetSaveDataPath ( [ appName, bool isFile ) : string
GetSaveSystemConfigPath ( [ appName, bool isFile ) : string
Locations ( ) : System

메소드 상세

OverrideInstallBase() 공개 정적인 메소드

Override the automatically determined InstallBase with a custom path.
Use with caution. Be aware of possible race conditions. Intended for unit testing, runtime relocation, etc..
public static OverrideInstallBase ( string path ) : void
path string
리턴 void