Поделиться через


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.

ПримечаниеПримечание.

Do not override this function.

Пример

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

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

Требования

Header: afx.h

См. также

Основные понятия

CObject Class

CObject Members

Hierarchy Chart

CObject::Serialize