Sisk

Method

InitializationParameterCollection.GetValueOrThrow

Namespace
Sisk.Core.Http.Hosting
Assembly
Sisk.Core.dll

GetValueOrThrow(string, GetValueOption) #

Gets the specified value if present in this parameter collection, or throw an exception if the value is not present.

C#
public string GetValueOrThrow(string parameterName, InitializationParameterCollection.GetValueOption option = GetValueOption.NotNullOrEmpty)

Parameters #

parameterName string

The parameter name.

option InitializationParameterCollection.GetValueOption

Specifies the GetValueOption used for getting the value.

Returns #

string

Type to search the documentation and the API reference.