C# 클래스 GSF.Configuration.ConfigurationFile

Represents a configuration file of a Windows or Web application.
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ConfigurationFile System
ConfigurationFile System
CreateConfigurationFile void
ExecuteConfigurationSave void
GetConfiguration System.Configuration.Configuration
TrimEnd string
ValidateConfigurationFile void

공개 메소드들

메소드 설명
Open ( string configFilePath ) : ConfigurationFile

Opens application config file at the specified configFilePath.

Reload ( ) : void

Reloads the current configuration settings from the configuration file that the ConfigurationFile represents.

RestoreDefaultUserSettings ( ) : void

Restores all the default settings for SettingScope.User scoped settings.

Save ( ) : void

Writes the configuration settings contained within this ConfigurationFile object to the configuration file that it represents.

Save ( ConfigurationSaveMode saveMode ) : void

Writes the configuration settings contained within this ConfigurationFile object to the configuration file that it represents.

SaveAs ( string fileName ) : void

Writes the configuration settings contained within this ConfigurationFile object to the specified configuration file.

SetCryptoKey ( string cryptoKey ) : void

Sets the key to be used for encrypting and decrypting values of Settings.

비공개 메소드들

메소드 설명
ConfigurationFile ( ) : System
ConfigurationFile ( string configFilePath ) : System

Initializes a new instance of the ConfigurationFile class.

CreateConfigurationFile ( string configFilePath ) : void
ExecuteConfigurationSave ( ) : void
GetConfiguration ( string configFilePath ) : Configuration
TrimEnd ( string stringToTrim, string textToTrim ) : string
ValidateConfigurationFile ( string configFilePath ) : void

메소드 상세

Open() 공개 정적인 메소드

Opens application config file at the specified configFilePath.
public static Open ( string configFilePath ) : ConfigurationFile
configFilePath string Path of the config file that belongs to a Windows or Web application.
리턴 ConfigurationFile

Reload() 공개 메소드

Reloads the current configuration settings from the configuration file that the ConfigurationFile represents.
public Reload ( ) : void
리턴 void

RestoreDefaultUserSettings() 공개 메소드

Restores all the default settings for SettingScope.User scoped settings.
public RestoreDefaultUserSettings ( ) : void
리턴 void

Save() 공개 메소드

Writes the configuration settings contained within this ConfigurationFile object to the configuration file that it represents.
public Save ( ) : void
리턴 void

Save() 공개 메소드

Writes the configuration settings contained within this ConfigurationFile object to the configuration file that it represents.
public Save ( ConfigurationSaveMode saveMode ) : void
saveMode ConfigurationSaveMode One of the values.
리턴 void

SaveAs() 공개 메소드

Writes the configuration settings contained within this ConfigurationFile object to the specified configuration file.
public SaveAs ( string fileName ) : void
fileName string The path and file name to save the configuration file to.
리턴 void

SetCryptoKey() 공개 메소드

Sets the key to be used for encrypting and decrypting values of Settings.
public SetCryptoKey ( string cryptoKey ) : void
cryptoKey string New crypto key.
리턴 void