This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IO > IObjectCopy Interface > IObjectCopy.Overwrite Method (ArcObjects .NET 10.5 SDK) |
Overwrites the object with the contents of input object.
[Visual Basic .NET] Public Sub Overwrite ( _ ByVal pInObject As Object, _ ByRef pOverwriteObject As Object _ )
[C#] public void Overwrite ( object pInObject, ref object pOverwriteObject );
[C++]
HRESULT Overwrite(
LPUNKNOWN pInObject,
LPUNKNOWN* pOverwriteObject
);
[C++]
Parameters pInObject [in] pInObject is a parameter of type LPUNKNOWN pOverwriteObject [in, out] pOverwriteObject is a parameter of type LPUNKNOWN
Used to overwrite an existing object with the contents of another object. The objects must be the same type of object and support IPersistStream.
Overwrite may fail if there is insufficient memory.