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; }
Public ReadOnly Default Property Item (
key As ConfigKey
) As IConfigItem
Get
public:
virtual property IConfigItem^ default[ConfigKey key] {
IConfigItem^ get (ConfigKey key) sealed;
}
Parameters
- key
- Type: AskiaPortalCmn.ConfigurationConfigKey
Key of the config item in the `askiaportal` namespace
Property Value
Type:
IConfigItemImplements
IConfigItemConfigKeyExamples
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