Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CArchive::SetObjectSchema

Call this member function to set the object schema stored in the archive object to nSchema.

void SetObjectSchema( 
   UINT nSchema  
);

nSchema

Specifies the object's schema.

The next call to GetObjectSchema will return the value stored in nSchema.

Use SetObjectSchema for advanced versioning; for example, when you want to force a particular version to be read in a Serialize function of a derived class.

ar.SetObjectSchema(2);
ASSERT(2 == ar.GetObjectSchema());

Header: afx.h

Community Additions

ADD
Show:
© 2015 Microsoft