Table of Contents

Method 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.

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

Parameters

parameterName string

The parameter name.

option InitializationParameterCollection.GetValueOption

Specifies the InitializationParameterCollection.GetValueOption used for getting the value.

Returns

string