語言

Intent.PutExtras 方法

定義

多載

名稱 Description
PutExtras(Bundle)

在意圖中加入一組擴展資料。

PutExtras(Intent)

把『src』裡的所有額外內容複製到這個意圖裡。

PutExtras(Bundle)

在意圖中加入一組擴展資料。

[Android.Runtime.Register("putExtras", "(Landroid/os/Bundle;)Landroid/content/Intent;", "GetPutExtras_Landroid_os_Bundle_Handler")]
public virtual Android.Content.Intent PutExtras(Android.OS.Bundle extras);
[<Android.Runtime.Register("putExtras", "(Landroid/os/Bundle;)Landroid/content/Intent;", "GetPutExtras_Landroid_os_Bundle_Handler")>]
abstract member PutExtras : Android.OS.Bundle -> Android.Content.Intent
override this.PutExtras : Android.OS.Bundle -> Android.Content.Intent

參數

extras
Bundle

還有一大堆額外內容來增添這個意圖。

傳回

此值不可能是空值。

屬性

備註

在意圖中加入一組擴展資料。 鍵必須包含套件前綴,例如 com.android.contacts 應用程式會使用像「com.android.contacts.ShowAll」這樣的名稱。

Java 文件 android.content.Intent.putExtras(android.os.Bundle)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

另請參閱

  • <xref:Android.Content.Intent.PutExtra(System.String%2c+Android.OS.Bundle)>
  • RemoveExtra(String)

適用於

PutExtras(Intent)

把『src』裡的所有額外內容複製到這個意圖裡。

[Android.Runtime.Register("putExtras", "(Landroid/content/Intent;)Landroid/content/Intent;", "GetPutExtras_Landroid_content_Intent_Handler")]
public virtual Android.Content.Intent PutExtras(Android.Content.Intent src);
[<Android.Runtime.Register("putExtras", "(Landroid/content/Intent;)Landroid/content/Intent;", "GetPutExtras_Landroid_content_Intent_Handler")>]
abstract member PutExtras : Android.Content.Intent -> Android.Content.Intent
override this.PutExtras : Android.Content.Intent -> Android.Content.Intent

參數

src
Intent

包含可複製的額外內容。

傳回

此值不可能是空值。

屬性

備註

把『src』裡的所有額外內容複製到這個意圖裡。

Java 文件 android.content.Intent.putExtras(android.content.Intent)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

另請參閱

  • <xref:Android.Content.Intent.PutExtra(System.String%2c+Android.OS.Bundle)>

適用於