다음을 통해 공유


IObjectInput.ReadObject Method

Definition

Read and return an object.

[Android.Runtime.Register("readObject", "()Ljava/lang/Object;", "GetReadObjectHandler:Java.IO.IObjectInputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? ReadObject ();
[<Android.Runtime.Register("readObject", "()Ljava/lang/Object;", "GetReadObjectHandler:Java.IO.IObjectInputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ReadObject : unit -> Java.Lang.Object

Returns

the object read from the stream

Attributes

Exceptions

if the object's class cannot be found.

if this stream is closed or another I/O error occurs.

Remarks

Read and return an object. The class that implements this interface defines where the object is "read" from.

Java documentation for java.io.ObjectInput.readObject().

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