次の方法で共有


Bundle.GetBundle(String) Method

Definition

Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.

[Android.Runtime.Register("getBundle", "(Ljava/lang/String;)Landroid/os/Bundle;", "")]
public Android.OS.Bundle? GetBundle (string? key);
[<Android.Runtime.Register("getBundle", "(Ljava/lang/String;)Landroid/os/Bundle;", "")>]
member this.GetBundle : string -> Android.OS.Bundle

Parameters

key
String

a String, or null

Returns

a Bundle value, or null

Attributes

Remarks

Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.

Java documentation for android.os.Bundle.getBundle(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