4AspNet IPInfo v1.0

CountryInfo.CountryCode Property

Returns an ISO country code (2 letters).

public string CountryCode {get;}

Property Value

The country code (eg. "US") or "--" if information is absent.

Example

For an example see CountryInfo overview.

See Also

CountryInfo Class | ForAspNet.IPInfo Namespace