ObjectStreamField Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ObjectStreamField(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
ObjectStreamField(String, Class) |
Create a Serializable field with the specified type. |
ObjectStreamField(String, Class, Boolean) |
Creates an ObjectStreamField representing a serializable field with the given name and type. |
ObjectStreamField(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected ObjectStreamField (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.IO.ObjectStreamField : nativeint * Android.Runtime.JniHandleOwnership -> Java.IO.ObjectStreamField
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
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
ObjectStreamField(String, Class)
Create a Serializable field with the specified type.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Class;)V", "")]
public ObjectStreamField (string? name, Java.Lang.Class? type);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Class;)V", "")>]
new Java.IO.ObjectStreamField : string * Java.Lang.Class -> Java.IO.ObjectStreamField
Parameters
- name
- String
the name of the serializable field
- type
- Class
the Class
object of the serializable field
- Attributes
Remarks
Create a Serializable field with the specified type. This field should be documented with a serialField
tag.
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
ObjectStreamField(String, Class, Boolean)
Creates an ObjectStreamField representing a serializable field with the given name and type.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Class;Z)V", "")]
public ObjectStreamField (string? name, Java.Lang.Class? type, bool unshared);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Class;Z)V", "")>]
new Java.IO.ObjectStreamField : string * Java.Lang.Class * bool -> Java.IO.ObjectStreamField
Parameters
- name
- String
field name
- type
- Class
field type
- unshared
- Boolean
if false, write/read field values in the same manner as writeObject/readObject; if true, write/read in the same manner as writeUnshared/readUnshared
- Attributes
Remarks
Creates an ObjectStreamField representing a serializable field with the given name and type. If unshared is false, values of the represented field are serialized and deserialized in the default manner--if the field is non-primitive, object values are serialized and deserialized as if they had been written and read by calls to writeObject and readObject. If unshared is true, values of the represented field are serialized and deserialized as if they had been written and read by calls to writeUnshared and readUnshared.
Added in 1.4.
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.