Interface IObjectStream

Namespace
ESRI.ArcGIS.esriSystem
Assembly
ESRI.Server.System.dll

Provides access to members used to make objects and object references persistant. Use of this interface allows multiple references to the same object to be stored properly.

[Guid("18A45BA7-1266-11D1-86AD-0000F8751720")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IObjectStream : IStream, ISequentialStream

Properties

Stream

The aggregated stream object.

IStream Stream { get; set; }

Property Value

IStream

Version

The software version for the stream.

string Version { get; set; }

Property Value

string

Methods

Clone(out IStream)

void Clone(out IStream ppstm)

Parameters

ppstm IStream

Commit(uint)

void Commit(uint grfCommitFlags)

Parameters

grfCommitFlags uint

LoadObject(ref Guid, object)

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.

object LoadObject(ref Guid riid, object pUnkOuter)

Parameters

riid Guid
pUnkOuter object

Returns

object

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.

LockRegion(_ULARGE_INTEGER, _ULARGE_INTEGER, uint)

void LockRegion(_ULARGE_INTEGER libOffset, _ULARGE_INTEGER cb, uint dwLockType)

Parameters

libOffset _ULARGE_INTEGER
cb _ULARGE_INTEGER
dwLockType uint

RemoteCopyTo(IStream, _ULARGE_INTEGER, out _ULARGE_INTEGER, out _ULARGE_INTEGER)

void RemoteCopyTo(IStream pstm, _ULARGE_INTEGER cb, out _ULARGE_INTEGER pcbRead, out _ULARGE_INTEGER pcbWritten)

Parameters

pstm IStream
cb _ULARGE_INTEGER
pcbRead _ULARGE_INTEGER
pcbWritten _ULARGE_INTEGER

RemoteRead(out byte, uint, out uint)

void RemoteRead(out byte pv, uint cb, out uint pcbRead)

Parameters

pv byte
cb uint
pcbRead uint

RemoteSeek(_LARGE_INTEGER, uint, out _ULARGE_INTEGER)

void RemoteSeek(_LARGE_INTEGER dlibMove, uint dwOrigin, out _ULARGE_INTEGER plibNewPosition)

Parameters

dlibMove _LARGE_INTEGER
dwOrigin uint
plibNewPosition _ULARGE_INTEGER

RemoteWrite(ref byte, uint, out uint)

void RemoteWrite(ref byte pv, uint cb, out uint pcbWritten)

Parameters

pv byte
cb uint
pcbWritten uint

ReplaceObject(object)

Replaces the current object with the object in the the specified stream.

void ReplaceObject(object unknown)

Parameters

unknown object

Revert()

void Revert()

SaveObject(object)

Store an object to the specified stream. The first time the object is stored, the full object is written to the stream. When the object is subsequently stored, a reference is stored.

void SaveObject(object pUnk)

Parameters

pUnk object

SetSize(_ULARGE_INTEGER)

void SetSize(_ULARGE_INTEGER libNewSize)

Parameters

libNewSize _ULARGE_INTEGER

Stat(out tagSTATSTG, uint)

void Stat(out tagSTATSTG pstatstg, uint grfStatFlag)

Parameters

pstatstg tagSTATSTG
grfStatFlag uint

UnlockRegion(_ULARGE_INTEGER, _ULARGE_INTEGER, uint)

void UnlockRegion(_ULARGE_INTEGER libOffset, _ULARGE_INTEGER cb, uint dwLockType)

Parameters

libOffset _ULARGE_INTEGER
cb _ULARGE_INTEGER
dwLockType uint