Click or drag to resize

CountryListGetCountry Method (String)

Returns country information by the given country code.

Namespace:  Dynamicweb.Controls.OMC
Assembly:  Dynamicweb.Controls (in Dynamicweb.Controls.dll) Version: 4.2.3
Syntax
public static CountryListCountryInfo GetCountry(
	string code
)

Parameters

code
Type: SystemString
Country code.

Return Value

Type: CountryListCountryInfo
Country information or null (Nothing in Visual Basic) if country information cannot be resolved.
Exceptions
ExceptionCondition
ArgumentNullExceptioncode is null.
ArgumentExceptioncode is an empty string.
Remarks