Method GetValueOrThrow
GetValueOrThrow(string, GetValueOption)
Gets the specified value if present in this parameter collection, or throw an exception if the value is not present.
public string GetValueOrThrow(string parameterName, InitializationParameterCollection.GetValueOption option = GetValueOption.NotNullOrEmpty)
Parameters
parameterName
stringThe parameter name.
option
InitializationParameterCollection.GetValueOptionSpecifies the InitializationParameterCollection.GetValueOption used for getting the value.