C# 클래스 ZeroInstall.Store.Config

파일 보기 프로젝트 열기: 0install/0install-win 1 사용 예제들

공개 메소드들

메소드 설명
Clone ( ) : Config

Creates a deep copy of this Config instance.

Equals ( Config other ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetOption ( string key ) : string

Retrieves the string representation of an option identified by a key.

ResetOption ( string key ) : void

Resets an option identified by a key to its default value.

Save ( ) : void

Saves the settings to an INI file in the default location in the user profile.

This method performs an atomic write operation when possible.

Save ( [ path ) : void

Saves the settings to an INI file.

This method performs an atomic write operation when possible.

SetOption ( string key, string value ) : void

Sets an option identified by a key.

ToString ( ) : string

Returns the keys and values of all contained setings.

비공개 메소드들

메소드 설명
ICloneable ( ) : object
Load ( ) : Config
Load ( [ path ) : Config
ReadFromAppSettings ( ) : void

Reads settings from ConfigurationManager.AppSettings and transfers them to properties.

ReadFromIniFile ( [ path ) : void

Reads settings from an INI file on the disk and transfers them to properties.

ReadFromIniFiles ( ) : void

Reads settings from INI files on the disk and transfers them to properties.

ReadFromRegistry ( ) : void

Reads settings from Windows policy registry keys and transfers them to properties.

ReadFromRegistry ( [ registryKey ) : void

Reads settings from a Windows registry key and transfers them to properties.

TransferToIni ( ) : void

Transfers settings from properties to _iniData.

메소드 상세

Clone() 공개 메소드

Creates a deep copy of this Config instance.
public Clone ( ) : Config
리턴 Config

Equals() 공개 메소드

public Equals ( Config other ) : bool
other Config
리턴 bool

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GetOption() 공개 메소드

Retrieves the string representation of an option identified by a key.
is invalid.
public GetOption ( string key ) : string
key string The key of the option to retrieve.
리턴 string

ResetOption() 공개 메소드

Resets an option identified by a key to its default value.
is invalid.
public ResetOption ( string key ) : void
key string The key of the option to reset.
리턴 void

Save() 공개 메소드

Saves the settings to an INI file in the default location in the user profile.
This method performs an atomic write operation when possible.
A problem occurs while writing the file. Write access to the file is not permitted.
public Save ( ) : void
리턴 void

Save() 공개 메소드

Saves the settings to an INI file.
This method performs an atomic write operation when possible.
A problem occurs while writing the file. Write access to the file is not permitted.
public Save ( [ path ) : void
path [
리턴 void

SetOption() 공개 메소드

Sets an option identified by a key.
is invalid. is invalid.
public SetOption ( string key, string value ) : void
key string The key of the option to set.
value string A string representation of the option.
리턴 void

ToString() 공개 메소드

Returns the keys and values of all contained setings.
public ToString ( ) : string
리턴 string