IConfigItem Property (ConfigKey) |
Get the configuration item in the `askiaportal` namespace
Namespace:
AskiaPortalCmn.Configuration
Assembly:
AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax IConfigItem this[
ConfigKey key
] { get; }
ReadOnly Default Property Item (
key As ConfigKey
) As IConfigItem
Get
property IConfigItem^ default[ConfigKey key] {
IConfigItem^ get (ConfigKey key);
}
Parameters
- key
- Type: AskiaPortalCmn.ConfigurationConfigKey
Key of the config item in the `askiaportal` namespace
Property Value
Type:
IConfigItemExamples
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