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


IObjectCopy.Overwrite Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (System)  

IObjectCopy.Overwrite Method

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

Product Availability

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

Description

Used to overwrite an existing object with the contents of another object. The objects must be the same type of object and support IPersistStream.

Remarks

Overwrite may fail if there is insufficient memory.

[C++]

See Also

IObjectCopy Interface