语言

MessageFormat 构造函数

定义

重载

名称 说明
MessageFormat(String)

为默认 FORMAT 区域设置和指定模式构造 MessageFormat。

MessageFormat(IntPtr, JniHandleOwnership)

创建表示现有Java对象的托管实例。

MessageFormat(String, ULocale)

为指定的区域设置和模式构造 MessageFormat。

MessageFormat(String, Locale)

为指定的区域设置和模式构造 MessageFormat。

MessageFormat(String)

为默认 FORMAT 区域设置和指定模式构造 MessageFormat。

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

参数

pattern
String

此消息格式的模式

特性

注解

为默认 FORMAT 区域设置和指定模式构造 MessageFormat。 设置区域设置和调用 applyPattern(pattern)。

Java文档android.icu.text.MessageFormat.MessageFormat(java.lang.String)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

MessageFormat(IntPtr, JniHandleOwnership)

创建表示现有Java对象的托管实例。

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

参数

javaReference
IntPtr

nativeint

对Java对象的 JNI 引用。

transfer
JniHandleOwnership

指定 JNI 引用的所有权是否传输到此实例。

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

MessageFormat(String, ULocale)

为指定的区域设置和模式构造 MessageFormat。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/icu/util/ULocale;)V", "", ApiSince=24)]
public MessageFormat(string? pattern, Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/icu/util/ULocale;)V", "", ApiSince=24)>]
new Android.Icu.Text.MessageFormat : string * Android.Icu.Util.ULocale -> Android.Icu.Text.MessageFormat

参数

pattern
String

此消息格式的模式

locale
ULocale

此消息格式的区域设置

特性

注解

为指定的区域设置和模式构造 MessageFormat。 设置区域设置和调用 applyPattern(pattern)。

Java文档android.icu.text.MessageFormat.MessageFormat(java.lang.String, android.icu.util.ULocale)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

MessageFormat(String, Locale)

为指定的区域设置和模式构造 MessageFormat。

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

参数

pattern
String

此消息格式的模式

locale
Locale

此消息格式的区域设置

特性

注解

为指定的区域设置和模式构造 MessageFormat。 设置区域设置和调用 applyPattern(pattern)。

Java文档android.icu.text.MessageFormat.MessageFormat(java.lang.String, java.util.Locale)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于