Click or drag to resize
SettingsKeyInfoProviderGetURLValue Method (SettingsKeyName, String)
Gets the URL value from settings.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 11.0.0
Syntax
C#
public static string GetURLValue(
	SettingsKeyName keyName,
	string defaultUrl
)

Parameters

keyName
Type: CMS.DataEngineSettingsKeyName
Key name in format "[site name].[key name]" for site setting or "[key name]" for global setting, see SettingsKeyName for more information
defaultUrl
Type: SystemString
Default URL

Return Value

Type: String
Remarks
If the DevelopmentMode is true and if keyName is not found InvalidOperationException is thrown instead.
See Also