BaseBundle.PutInt(String, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將整數值插入該 Bundle 的映射,替換該鍵的現有值。
[Android.Runtime.Register("putInt", "(Ljava/lang/String;I)V", "GetPutInt_Ljava_lang_String_IHandler")]
public virtual void PutInt(string? key, int value);
[<Android.Runtime.Register("putInt", "(Ljava/lang/String;I)V", "GetPutInt_Ljava_lang_String_IHandler")>]
abstract member PutInt : string * int -> unit
override this.PutInt : string * int -> unit
參數
- key
- String
一個字串,或稱空
- value
- Int32
一個內線
- 屬性
備註
將整數值插入該 Bundle 的映射,替換該鍵的現有值。
Java 文件 android.os.BaseBundle.putInt(java.lang.String, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。