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


IPersistVariant.Load Method (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 > IPersistVariant.Load Method
ArcGIS Developer Help

IPersistVariant.Load Method

Loads the object properties from the stream.

[Visual Basic .NET]
Public Sub Load ( _
    ByVal Stream As IVariantStream _
)
[C#]
public void Load (
    IVariantStream Stream
);
[C++]
HRESULT Load(
  IVariantStream* Stream
);
[C++]
Parameters
Stream [in]

Stream is a parameter of type IVariantStream*

Product Availability

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

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.

See Also

IPersistVariant Interface