次の方法で共有


IObjectOutput.WriteObject(Object) Method

Definition

Write an object to the underlying storage or stream.

[Android.Runtime.Register("writeObject", "(Ljava/lang/Object;)V", "GetWriteObject_Ljava_lang_Object_Handler:Java.IO.IObjectOutputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void WriteObject (Java.Lang.Object? obj);
[<Android.Runtime.Register("writeObject", "(Ljava/lang/Object;)V", "GetWriteObject_Ljava_lang_Object_Handler:Java.IO.IObjectOutputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member WriteObject : Java.Lang.Object -> unit

Parameters

obj
Object

the object to be written

Attributes

Exceptions

if an error occurs while writing to the target stream.

Remarks

Write an object to the underlying storage or stream. The class that implements this interface defines how the object is written.

Java documentation for java.io.ObjectOutput.writeObject(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