VaultUtilsGetConfigParameter Method |
Retrieves a vault configuration parameter from a dictionary structure. Handles optional/default
parameters and provides readable exception messages on failure.
Namespace:
PDTec.IceNet.Sdk.Utils
Assembly:
PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax public static string GetConfigParameter(
string vaultName,
IDictionary<string, string> dcParameters,
string key,
bool isRequired,
string defaultValue
)
Parameters
- vaultName
- Type: SystemString
The vault name. - dcParameters
- Type: System.Collections.GenericIDictionaryString, String
The parameter dictionary. - key
- Type: SystemString
The parameter key. - isRequired
- Type: SystemBoolean
Indicates whether the requested parameter is required to be present in the dictionary. - defaultValue
- Type: SystemString
The default value to be returned if the optional parameter is not present in the dictionary.
Return Value
Type:
StringThe parameter value.
Exceptions Remarks See Also