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
Version
The software version for the stream.
string Version { get; set; }
Property Value
Methods
Clone(out IStream)
void Clone(out IStream ppstm)
Parameters
ppstmIStream
Commit(uint)
void Commit(uint grfCommitFlags)
Parameters
grfCommitFlagsuint
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
Returns
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_INTEGERcb_ULARGE_INTEGERdwLockTypeuint
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
pstmIStreamcb_ULARGE_INTEGERpcbRead_ULARGE_INTEGERpcbWritten_ULARGE_INTEGER
RemoteRead(out byte, uint, out uint)
void RemoteRead(out byte pv, uint cb, out uint pcbRead)
Parameters
RemoteSeek(_LARGE_INTEGER, uint, out _ULARGE_INTEGER)
void RemoteSeek(_LARGE_INTEGER dlibMove, uint dwOrigin, out _ULARGE_INTEGER plibNewPosition)
Parameters
dlibMove_LARGE_INTEGERdwOriginuintplibNewPosition_ULARGE_INTEGER
RemoteWrite(ref byte, uint, out uint)
void RemoteWrite(ref byte pv, uint cb, out uint pcbWritten)
Parameters
ReplaceObject(object)
Replaces the current object with the object in the the specified stream.
void ReplaceObject(object unknown)
Parameters
unknownobject
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
pUnkobject
SetSize(_ULARGE_INTEGER)
void SetSize(_ULARGE_INTEGER libNewSize)
Parameters
libNewSize_ULARGE_INTEGER
Stat(out tagSTATSTG, uint)
void Stat(out tagSTATSTG pstatstg, uint grfStatFlag)
Parameters
pstatstgtagSTATSTGgrfStatFlaguint
UnlockRegion(_ULARGE_INTEGER, _ULARGE_INTEGER, uint)
void UnlockRegion(_ULARGE_INTEGER libOffset, _ULARGE_INTEGER cb, uint dwLockType)
Parameters
libOffset_ULARGE_INTEGERcb_ULARGE_INTEGERdwLockTypeuint