Click or drag to resize

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
C#
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: String
The parameter value.
Exceptions
ExceptionCondition
ConfigurationExceptionIf a required parameter is not present in the dictionary.
Remarks
See Also