ObjectOutputStream.DefaultWriteObject Method
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.
Write the non-static and non-transient fields of the current class to this stream.
[Android.Runtime.Register("defaultWriteObject", "()V", "GetDefaultWriteObjectHandler")]
public virtual void DefaultWriteObject ();
[<Android.Runtime.Register("defaultWriteObject", "()V", "GetDefaultWriteObjectHandler")>]
abstract member DefaultWriteObject : unit -> unit
override this.DefaultWriteObject : unit -> unit
- Attributes
Exceptions
if an error occurs while writing to the target stream.
if this method is not called from writeObject()
.
Remarks
Write the non-static and non-transient fields of the current class to this stream. This may only be called from the writeObject method of the class being serialized. It will throw the NotActiveException if it is called otherwise.
Java documentation for java.io.ObjectOutputStream.defaultWriteObject()
.
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.