SettingsKeyInfoProviderGetValueInternal Method |
Returns value of the specified key from the database.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax protected virtual string GetValueInternal(
string keyName,
SiteInfoIdentifier siteIdentifier,
bool nullIfNotFound = false
)
Parameters
- keyName
- Type: SystemString
Key name - siteIdentifier
- Type: CMS.DataEngineSiteInfoIdentifier
Site identifier (site ID or site name), see SiteInfoIdentifier and InfoIdentifier for more information - nullIfNotFound (Optional)
- Type: SystemBoolean
Return null if the key does not exist
Return Value
Type:
StringRemarks If the
DevelopmentMode is
true and if
keyName is not found
InvalidOperationException is thrown instead.
See Also