Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CObject::IsSerializable

 

Tests whether this object is eligible for serialization.


BOOL IsSerializable( ) const;

Nonzero if this object can be serialized; otherwise 0.

For a class to be serializable, its declaration must contain the DECLARE_SERIAL macro, and the implementation must contain the IMPLEMENT_SERIAL macro.

System_CAPS_noteNote

Do not override this function.

Example

See CObList::CObList for a listing of the CAge class used in all CObject examples.

CAge a(21);
ASSERT(a.IsSerializable());

Requirements

Header: afx.h

Show: