PofStreamWriterPofContext Property |
Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Gets or sets the
IPofContext object used by this
PofStreamWriter to serialize user types into a POF stream.
Namespace:
Tangosol.IO.Pof
Assembly:
Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntaxpublic virtual IPofContext PofContext { get; set; }
Property Value
Type:
IPofContext
The
IPofContext object that contains user type meta-data.
Implements
IPofWriterPofContext
Remarks
This is an advanced method that should be used with care.
For example, if this method is being used to switch to another
IPofContext mid-POF stream, it is important to eventually
restore the original
IPofContext. For example:
IPofContext ctxOrig = writer.PofContext;
try
{
// switch to another IPofContext
writer.PofContext = ...;
// write POF data using the writer
}
finally
{
// restore the original PofContext
writer.PofContext = ctxOrig;
}
See Also