SettingsKeyInfoProviderGetValue Method (String, SiteInfoIdentifier) |
Returns value of the specified key from the database or "" if not found. Falls back to the
GetValue(SettingsKeyName) if site-specific key is not found.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax public static string GetValue(
string keyName,
SiteInfoIdentifier siteIdentifier
)
Parameters
- keyName
- Type: SystemString
Key name - siteIdentifier
- Type: CMS.DataEngineSiteInfoIdentifier
Site identifier (site ID or site name), see SiteInfoIdentifier and InfoIdentifier for more information
Return Value
Type:
StringReturns "" if the key does not exist
Remarks If the
DevelopmentMode is
true and if
keyName is not found
InvalidOperationException is thrown instead.
See Also