다음을 통해 공유


IPersistStreamInit Interface

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

The IPersistStreamInit interface is a standard Win32 OLE interface. This interface is typically implemented on any object that needs to support initialized stream-based persistence, regardless of whatever else the object does.

In the context of the Order Processing pipeline (OPP), it is used to load or save the component configuration in the pipeline configuration file (the pipeline calls this interface as appropriate). For more information about the IPersistStreamInit interface, see the OLE Programmer's Reference. Variables of type CComVariant can save and read their values from a stream and can be used to hold the values of a component that need to be saved.

The IPersistStreamInit interface supports the following methods.

Method

Description

GetClassID

Returns the class identifier (CLSID) of the object.

GetSizeMax

Returns the size needed to save the persisted values.

InitNew

Allows the object to initialize values before saved values are loaded.

IsDirty

Indicates whether the data to be saved has changed since the last save.

Load

Loads data from a stream.

Save

Saves data to a stream.

Header: Ocidl.h

IDL File: Ocidl.idl