Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Components.CurrencyISO4217.CurrencyToIdAsync Method

Converts a currency name to an ISO 4217 three character ID.

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

Syntax

public static Task<string> CurrencyToIdAsync(
    string? currency,
    bool AllowMismatch = false );

Parameters

currency

The currency name.

AllowMismatch

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

Return Value

Returns a three character currency ID.

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