Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Components.CountryISO3166.CountryToId Method

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

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

Syntax

public static string CountryToId(
    string? country,
    bool AllowMismatch = false );

Parameters

country

The country name.

AllowMismatch

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

Return Value

Returns the two character country ID.

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