CArchive::IsStoring

This method, which is called by the Serialize method of the archived class, determines whether the archive is storing data.

BOOL IsStoring( ) 
const; 

Return Value

Nonzero if the archive is being used for storing; otherwise, it is zero.

Remarks

If the IsStoring status of an archive is nonzero, then its IsLoading status is zero, and vice versa.

Example

int i;
extern CArchive ar;
if( ar.IsStoring() )
  ar << i;
else
  ar >> i;

Requirements

**  Windows CE versions:** 1.0 and later
  Header file: Declared in Afx.h
  Platform: H/PC Pro, Palm-size PC, Pocket PC

See Also

CArchive::IsLoading, CObject::Serialize