matlab.serialization.SerializationContext Class
Namespace: matlab.serialization
Description
Use an instance of matlab.serialization.SerializationContext
to determine
how to customize the serialization of an object in the
modifyOutgoingSerialization
method of matlab.mixin.CustomElementSerialization
. MATLAB® sets the class property CustomizeForReadability
to true
when an object of the class is being serialized in a context that is human readable, for
example through the C++ MATLAB Data API.
Creation
MATLAB creates an instance of matlab.serialization.SerializationContext
when class authors pass a third argument to the modifyOutgoingSerialization
method of matlab.mixin.CustomElementSerialization
. The argument name becomes
the name of the matlab.serialization.SerializationContext
instance. You cannot
create an instance of this class directly.
Properties
Examples
Version History
Introduced in R2024b