C# 클래스 NuGet.SettingsExtensions

파일 보기 프로젝트 열기: themotleyfool/NuGet

공개 메소드들

메소드 설명
DeleteConfigValue ( this settings, string key ) : bool

Deletes a config value from settings

GetConfigValue ( this settings, string key, bool decrypt = false ) : string

Retrieves a config value for the specified key

GetDecryptedValue ( this settings, string section, string key ) : string
SetConfigValue ( this settings, string key, string value, bool encrypt = false ) : void

Sets a config value in the setting.

SetEncryptedValue ( this settings, string section, string key, string value ) : void

메소드 상세

DeleteConfigValue() 공개 정적인 메소드

Deletes a config value from settings
public static DeleteConfigValue ( this settings, string key ) : bool
settings this The settings instance to delete the key from.
key string The key to delete.
리턴 bool

GetConfigValue() 공개 정적인 메소드

Retrieves a config value for the specified key
public static GetConfigValue ( this settings, string key, bool decrypt = false ) : string
settings this The settings instance to retrieve
key string The key to look up
decrypt bool Determines if the retrieved value needs to be decrypted.
리턴 string

GetDecryptedValue() 공개 정적인 메소드

public static GetDecryptedValue ( this settings, string section, string key ) : string
settings this
section string
key string
리턴 string

SetConfigValue() 공개 정적인 메소드

Sets a config value in the setting.
public static SetConfigValue ( this settings, string key, string value, bool encrypt = false ) : void
settings this The settings instance to store the key-value in.
key string The key to store.
value string The value to store.
encrypt bool Determines if the value needs to be encrypted prior to storing.
리턴 void

SetEncryptedValue() 공개 정적인 메소드

public static SetEncryptedValue ( this settings, string section, string key, string value ) : void
settings this
section string
key string
value string
리턴 void