Click or drag to resize
SettingsKeyInfoProviderGetValueFromDB Method (String, SiteInfoIdentifier)
Gets the settings key value from DB.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
public static string GetValueFromDB(
	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: String
Remarks
If the DevelopmentMode is true and if keyName is not found InvalidOperationException is thrown instead.
See Also