Java.IO.ObjectOutputStream.UseProtocolVersion Method
Sets the specified protocol version to be used by this stream.

Syntax

[Android.Runtime.Register("useProtocolVersion", "(I)V", "GetUseProtocolVersion_IHandler")]
public virtual void UseProtocolVersion ([Android.Runtime.GeneratedEnum] ObjectStreamProtocol version)

See Also

ObjectStreamConstants.ProtocolVersion1
ObjectStreamConstants.ProtocolVersion2

Parameters

version
the protocol version to be used. Use a PROTOCOL_VERSION_x constant from java.io.ObjectStreamConstants.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif an invalid version is specified.
Java.IO.IOExceptionif an I/O error occurs.

Remarks

Sets the specified protocol version to be used by this stream.

[Android Documentation]

Requirements

Namespace: Java.IO
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1