Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Components.CountryISO3166.IdToCountry Method

Converts an ISO 3166 two character ID into a country name.

Class: YetaWF.Core.Components.CountryISO3166
Namespace: YetaWF.Core.Components
Assembly: YetaWF.Core

Syntax

public static string IdToCountry(
    string id,
    bool AllowMismatch = false );

Parameters

id

The two character ID.

AllowMismatch

true to return a default value if the country name doesn't exist, false otherwise (throws an error).

Return Value

Returns the country name.

See Also YetaWF.Core.Components.CountryISO3166 ClassYetaWF.Core Overview