Provides access to members used for storage of an object through VARIANTs.
Description
The IPersistVariant interface should be implemented by classes which need to be persistable. This interface was specifically designed for use by programmers who don�t use Visual C++, or C++ development environments.
The stream passed to the IPersistVariant interface is a specialist stream class which implements IVariantStream. Using this interface, any value type, or any COM object can be written to a stream. This stream class is internal to ArcObjects.
See the topics on implementing persistence for more details.
Members
Name | Description | |
---|---|---|
ID | The ID of the object. | |
Load | Loads the object properties from the stream. | |
Save | Saves the object properties to the stream. |
IPersistVariant.ID Property
The ID of the object.
Public ReadOnly Property ID As UID
public UID ID {get;}
Description
Returns a UID or a the fully-qualified class name of your class.
IPersistVariant.Load Method
Loads the object properties from the stream.
Public Sub Load ( _
    ByVal Stream As IVariantStream _
)
public void Load (
    IVariantStream Stream
);
Description
The Load method must read the data from the stream in the same order the data was written to the stream in the Save method.
Streams are sequential; you must ensure that your data is saved and loaded in the correct order, so that the correct data is written to the correct member.
IPersistVariant.Save Method
Saves the object properties to the stream.
Public Sub Save ( _
    ByVal Stream As IVariantStream _
)
public void Save (
    IVariantStream Stream
);
Description
The Load method must read the data from the stream in the same order the data was written to the stream in the Save method.
Streams are sequential; you mut ensure that your data is saved and loaded in the correct order, so that the correct data is written to the correct member.
Classes that implement IPersistVariant
Classes | Description |
---|