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


IObjectStream.LoadObject Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (System)  

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(
  GUID* riid,
  LPUNKNOWN pUnkOuter,
  LPUNKNOWN* ppUnk
);
[C++]

Parameters riid [in]
riid is a parameter of type GUID pUnkOuter [in] pUnkOuter is a parameter of type LPUNKNOWN ppUnk [out, retval] ppUnk is a parameter of type LPUNKNOWN

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