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


IObjectCopy.Overwrite Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IO > IObjectCopy Interface > IObjectCopy.Overwrite Method
ArcGIS Developer Help

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,
  IUnknown Pointer* pOverwriteObject
);
[C++]
Parameters
pInObject [in]

pInObject is a parameter of type IUnknown pOverwriteObject [in, out]
pOverwriteObject is a parameter of type IUnknown*

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++]

You can't pass in an ATL smart type for the data to overwrite IUnknownPtr, but must declare it as a simple pointer to IUnknown*.

 

See Also

IObjectCopy Interface