Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
Register an identity for a newly created user type instance.

Namespace: Tangosol.IO.Pof
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.4014 (12.2.1.4014)

Syntax

C#
public virtual void RegisterIdentity(
	Object o
)

Parameters

o
Type: System..::..Object
The object to register the identity for.

Implements

IPofReader..::..RegisterIdentity(Object)

Remarks

If identity/reference types are enabled, an identity is used to uniquely identify a user type instance within a POF stream. The identity immediately proceeds the instance value in the POF stream and can be used later in the stream to reference the instance.

IPofSerializer implementations must call this method with each user type instance instantiated during deserialization prior to reading any properties of the instance which are user type instances themselves.

Exceptions

ExceptionCondition
System..::..InvalidOperationException If no user type is being parsed.

See Also