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

.NET Samples

Copy the PageLayoutControl focus map and overwrite the MapControl map (Code Files: CopyFocusMap) |