MessageFormat 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| MessageFormat(String) |
為預設 |
| MessageFormat(IntPtr, JniHandleOwnership) | |
| MessageFormat(String, ULocale) |
為指定的地點與模式構建 MessageFormat。 |
| MessageFormat(String, Locale) |
為指定的地點與模式構建 MessageFormat。 |
MessageFormat(String)
為預設 FORMAT 區域及指定模式構建訊息格式。
[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 區域及指定模式構建訊息格式。 設定地點並呼叫 applyPattern(pattern)。
Java 文件 android.icu.text.MessageFormat.MessageFormat(java.lang.String)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
MessageFormat(IntPtr, JniHandleOwnership)
protected MessageFormat(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Icu.Text.MessageFormat : nativeint * Android.Runtime.JniHandleOwnership -> Android.Icu.Text.MessageFormat
參數
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
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)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
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)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。