MessageFormat Constructors

Definition

Overloads

MessageFormat(String)

Constructs a MessageFormat for the default java.util.Locale.Category#FORMAT FORMAT locale and the specified pattern.

MessageFormat(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

MessageFormat(String, Locale)

Constructs a MessageFormat for the specified locale and pattern.

MessageFormat(String)

Constructs a MessageFormat for the default java.util.Locale.Category#FORMAT FORMAT locale and the specified pattern.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public MessageFormat (string? pattern);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Text.MessageFormat : string -> Java.Text.MessageFormat

Parameters

pattern
String

the pattern for this message format

Attributes

Exceptions

if the pattern cannot be parsed.

Remarks

Java documentation for java.text.MessageFormat.MessageFormat(java.lang.String).

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

MessageFormat(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected MessageFormat (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Text.MessageFormat : nativeint * Android.Runtime.JniHandleOwnership -> Java.Text.MessageFormat

Parameters

javaReference
IntPtr

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

MessageFormat(String, Locale)

Constructs a MessageFormat for the specified locale and pattern.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Locale;)V", "")]
public MessageFormat (string? pattern, Java.Util.Locale? locale);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Locale;)V", "")>]
new Java.Text.MessageFormat : string * Java.Util.Locale -> Java.Text.MessageFormat

Parameters

pattern
String

the pattern for this message format

locale
Locale

the locale for this message format

Attributes

Exceptions

if the pattern cannot be parsed.

Remarks

Java documentation for java.text.MessageFormat.MessageFormat(java.lang.String, 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