Click or drag to resize

ConfigItem Property (ConfigKey)

Get the configuration item in the `askiaportal` namespace

Namespace:  AskiaPortalCmn.Configuration
Assembly:  AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax
public IConfigItem this[
	ConfigKey key
] { get; }

Parameters

key
Type: AskiaPortalCmn.ConfigurationConfigKey
Key of the config item in the `askiaportal` namespace

Property Value

Type: IConfigItem

Implements

IConfigItemConfigKey
Examples

Retrieve the Id of the default group when a user sign up

using AskiaPortalCmn.Configuration;

// ...
var config = Config.GetInstance();
Console.WriteLine("The default group Id is `{0}`", config[ConfigKey.DefaultGroupId].ValueAsInt);
See Also