Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Components.CurrencyISO4217.CurrencyIdToNumberAsync Method

Convert a three character currency ID to an ISO 4217 numeric ID.

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

Syntax

public static Task<int> CurrencyIdToNumberAsync(
    string? id,
    bool AllowMismatch = false );

Parameters

id

The three character currency ID.

AllowMismatch

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

Return Value

Returns the numeric currency ID.

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