Udostępnij za pośrednictwem


Currency.GetSymbol(Locale) Method

Definition

Gets the symbol of this currency for the specified locale.

[Android.Runtime.Register("getSymbol", "(Ljava/util/Locale;)Ljava/lang/String;", "")]
public string? GetSymbol (Java.Util.Locale? locale);
[<Android.Runtime.Register("getSymbol", "(Ljava/util/Locale;)Ljava/lang/String;", "")>]
member this.GetSymbol : Java.Util.Locale -> string

Parameters

locale
Locale

the locale for which a display name for this currency is needed

Returns

the symbol of this currency for the specified locale

Attributes

Remarks

Gets the symbol of this currency for the specified locale. For example, for the US Dollar, the symbol is "$" if the specified locale is the US, while for other locales it may be "US$". If no symbol can be determined, the ISO 4217 currency code is returned.

Java documentation for java.util.Currency.getSymbol(java.util.Locale).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to