Creates a config value by getting the metadata value from the execution context of a specified key.
- Namespace
- Statiq
.Common - Containing Type
- Config
Syntax
public static Config<TValue> FromSetting<TValue>(string key)
Type Parameters
Name | Description |
---|---|
TValue | The type of config value. |
Parameters
Name | Type | Description |
---|---|---|
key | string | The metadata key to get the value from. |
Return Value
Type | Description |
---|---|
Config |
A config object. |