This document is archived and information here might be outdated.  Recommended version.


IPersistVariant Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IP > IPersistVariant Interface
ArcGIS Developer Help

IPersistVariant Interface

Provides access to members used for storage of an object through VARIANTs.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

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
Read-only property ID The ID of the object.
Method Load Loads the object properties from the stream.
Method Save Saves the object properties to the stream.

Classes that implement IPersistVariant

Classes Description
ImageServerLayer (esriCarto) Image server layer source and display options.