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


IObjectStream.LoadObject Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IO > IObjectStream Interface > IObjectStream.LoadObject Method
ArcGIS Developer Help

IObjectStream.LoadObject Method

Load an object from the specified stream. The first time an object is encountered, it is loaded from the stream. When subsequent references to the object are loaded, a pointer to the first object is returned.

[Visual Basic .NET]
Public Function LoadObject ( _
    ByRef riid As Guid&, _
    ByVal pUnkOuter As Object _
) As Object
[C#]
public object LoadObject (
    ref Guid& riid,
    ref object pUnkOuter
);
[C++]
HRESULT LoadObject(
  System.Guid* riid,
  LPUNKNOWN pUnkOuter
);
[C++]
Parameters
riid [in]

riid is a parameter of type System.Guid* pUnkOuter [in]
pUnkOuter is a parameter of type IUnknown

Product Availability

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

Remarks

The first parameter of LoadObject is a GUID of an interface ID (most of them could be find under HKEY_CLASSES_ROOT\Interface in the registry), not the object's GUID. The object that gets loaded will QI for this interface and the result is returned with the IUnknown parameter.

See Also

IObjectStream Interface