ConfigFileHelperGetSecureSetting Method
Gets a secure string value of a configuration file key.
Namespace: Configuration.HelperAssembly: Configuration.Helper (in Configuration.Helper.dll) Version: 2.0.5
public static SecureString GetSecureSetting(
string configFile,
string sectionName,
string key
)
- configFile String
- Full path and name of the configuration file.
- sectionName String
- Name of the section containing the key.
- key String
- Key of the value to return.
SecureStringIf the key cannot be retrieved then the return value will have a length of zero.