Udostępnij za pośrednictwem


JSONStringer.Key(String) Method

Definition

Encodes the key (property name) to this stringer.

[Android.Runtime.Register("key", "(Ljava/lang/String;)Lorg/json/JSONStringer;", "GetKey_Ljava_lang_String_Handler")]
public virtual Org.Json.JSONStringer? Key (string? name);
[<Android.Runtime.Register("key", "(Ljava/lang/String;)Lorg/json/JSONStringer;", "GetKey_Ljava_lang_String_Handler")>]
abstract member Key : string -> Org.Json.JSONStringer
override this.Key : string -> Org.Json.JSONStringer

Parameters

name
String

the name of the forthcoming value. May not be null.

Returns

this stringer.

Attributes

Exceptions

Remarks

Encodes the key (property name) to this stringer.

Java documentation for org.json.JSONStringer.key(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