Click or drag to resize
TransformationHelperGetCountryDisplayName Method
Returns country displayname based on its codename.

Namespace: CMS.Controls
Assembly: CMS.Controls (in CMS.Controls.dll) Version: 8.2.23
Syntax
C#
public Object GetCountryDisplayName(
	string countryCode,
	bool appendState = true,
	string format = null
)

Parameters

countryCode
Type: SystemString
Code name of country
appendState (Optional)
Type: SystemBoolean
If true, state code is appended to country name
format (Optional)
Type: SystemString
Format for appending state to country. Default format is '{state}, {country}'

Return Value

Type: Object
See Also