Share via


ObjectOutputStream.PutField.Put Method

Definition

Overloads

Put(String, Object)

Put the value of the named Object field into the persistent field.

Put(String, Boolean)

Put the value of the named boolean field into the persistent field.

Put(String, Char)

Put the value of the named char field into the persistent field.

Put(String, Double)

Put the value of the named double field into the persistent field.

Put(String, Int16)

Put the value of the named short field into the persistent field.

Put(String, Int32)

Put the value of the named int field into the persistent field.

Put(String, Int64)

Put the value of the named long field into the persistent field.

Put(String, SByte)

Put the value of the named byte field into the persistent field.

Put(String, Single)

Put the value of the named float field into the persistent field.

Put(String, Object)

Put the value of the named Object field into the persistent field.

[Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Object;)V", "GetPut_Ljava_lang_String_Ljava_lang_Object_Handler")]
public abstract void Put (string name, Java.Lang.Object val);
[<Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Object;)V", "GetPut_Ljava_lang_String_Ljava_lang_Object_Handler")>]
abstract member Put : string * Java.Lang.Object -> unit

Parameters

name
String

the name of the serializable field

val
Object

the value to assign to the field (which may be null)

Attributes

Remarks

Put the value of the named Object field into the persistent field.

Java documentation for java.io.ObjectOutputStream.PutField.put(java.lang.String, java.lang.Object).

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

Put(String, Boolean)

Put the value of the named boolean field into the persistent field.

[Android.Runtime.Register("put", "(Ljava/lang/String;Z)V", "GetPut_Ljava_lang_String_ZHandler")]
public abstract void Put (string name, bool val);
[<Android.Runtime.Register("put", "(Ljava/lang/String;Z)V", "GetPut_Ljava_lang_String_ZHandler")>]
abstract member Put : string * bool -> unit

Parameters

name
String

the name of the serializable field

val
Boolean

the value to assign to the field

Attributes

Remarks

Put the value of the named boolean field into the persistent field.

Java documentation for java.io.ObjectOutputStream.PutField.put(java.lang.String, boolean).

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

Put(String, Char)

Put the value of the named char field into the persistent field.

[Android.Runtime.Register("put", "(Ljava/lang/String;C)V", "GetPut_Ljava_lang_String_CHandler")]
public abstract void Put (string name, char val);
[<Android.Runtime.Register("put", "(Ljava/lang/String;C)V", "GetPut_Ljava_lang_String_CHandler")>]
abstract member Put : string * char -> unit

Parameters

name
String

the name of the serializable field

val
Char

the value to assign to the field

Attributes

Remarks

Put the value of the named char field into the persistent field.

Java documentation for java.io.ObjectOutputStream.PutField.put(java.lang.String, char).

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

Put(String, Double)

Put the value of the named double field into the persistent field.

[Android.Runtime.Register("put", "(Ljava/lang/String;D)V", "GetPut_Ljava_lang_String_DHandler")]
public abstract void Put (string name, double val);
[<Android.Runtime.Register("put", "(Ljava/lang/String;D)V", "GetPut_Ljava_lang_String_DHandler")>]
abstract member Put : string * double -> unit

Parameters

name
String

the name of the serializable field

val
Double

the value to assign to the field

Attributes

Remarks

Put the value of the named double field into the persistent field.

Java documentation for java.io.ObjectOutputStream.PutField.put(java.lang.String, double).

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

Put(String, Int16)

Put the value of the named short field into the persistent field.

[Android.Runtime.Register("put", "(Ljava/lang/String;S)V", "GetPut_Ljava_lang_String_SHandler")]
public abstract void Put (string name, short val);
[<Android.Runtime.Register("put", "(Ljava/lang/String;S)V", "GetPut_Ljava_lang_String_SHandler")>]
abstract member Put : string * int16 -> unit

Parameters

name
String

the name of the serializable field

val
Int16

the value to assign to the field

Attributes

Remarks

Put the value of the named short field into the persistent field.

Java documentation for java.io.ObjectOutputStream.PutField.put(java.lang.String, short).

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

Put(String, Int32)

Put the value of the named int field into the persistent field.

[Android.Runtime.Register("put", "(Ljava/lang/String;I)V", "GetPut_Ljava_lang_String_IHandler")]
public abstract void Put (string name, int val);
[<Android.Runtime.Register("put", "(Ljava/lang/String;I)V", "GetPut_Ljava_lang_String_IHandler")>]
abstract member Put : string * int -> unit

Parameters

name
String

the name of the serializable field

val
Int32

the value to assign to the field

Attributes

Remarks

Put the value of the named int field into the persistent field.

Java documentation for java.io.ObjectOutputStream.PutField.put(java.lang.String, int).

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

Put(String, Int64)

Put the value of the named long field into the persistent field.

[Android.Runtime.Register("put", "(Ljava/lang/String;J)V", "GetPut_Ljava_lang_String_JHandler")]
public abstract void Put (string name, long val);
[<Android.Runtime.Register("put", "(Ljava/lang/String;J)V", "GetPut_Ljava_lang_String_JHandler")>]
abstract member Put : string * int64 -> unit

Parameters

name
String

the name of the serializable field

val
Int64

the value to assign to the field

Attributes

Remarks

Put the value of the named long field into the persistent field.

Java documentation for java.io.ObjectOutputStream.PutField.put(java.lang.String, long).

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

Put(String, SByte)

Put the value of the named byte field into the persistent field.

[Android.Runtime.Register("put", "(Ljava/lang/String;B)V", "GetPut_Ljava_lang_String_BHandler")]
public abstract void Put (string name, sbyte val);
[<Android.Runtime.Register("put", "(Ljava/lang/String;B)V", "GetPut_Ljava_lang_String_BHandler")>]
abstract member Put : string * sbyte -> unit

Parameters

name
String

the name of the serializable field

val
SByte

the value to assign to the field

Attributes

Remarks

Put the value of the named byte field into the persistent field.

Java documentation for java.io.ObjectOutputStream.PutField.put(java.lang.String, byte).

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

Put(String, Single)

Put the value of the named float field into the persistent field.

[Android.Runtime.Register("put", "(Ljava/lang/String;F)V", "GetPut_Ljava_lang_String_FHandler")]
public abstract void Put (string name, float val);
[<Android.Runtime.Register("put", "(Ljava/lang/String;F)V", "GetPut_Ljava_lang_String_FHandler")>]
abstract member Put : string * single -> unit

Parameters

name
String

the name of the serializable field

val
Single

the value to assign to the field

Attributes

Remarks

Put the value of the named float field into the persistent field.

Java documentation for java.io.ObjectOutputStream.PutField.put(java.lang.String, float).

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