FromSetting(string, string) Method
Creates a config value by getting the string metadata value from the execution context of a specified key.
Namespace
Statiq.Common
Containing Type
Config

Syntax

public static Config<string> FromSetting(string key, string defaultValue)

Parameters

Name Type Description
key string The metadata key to get the string value from.
defaultValue string The default value to use if the key cannot be found, is null, or cannot be converted to a string.

Return Value

Type Description
Config<string> A config object.