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


ICopyHelper.UpdateMetadata Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

ICopyHelper.UpdateMetadata Method

Call this after creating a copy of a dataset, workspace, or file.

[Visual Basic .NET]
Public Sub UpdateMetadata ( _
    ByVal src As IName, _
    ByVal dest As IName, _
    ByVal isMove As Boolean _
)
[C#]
public void UpdateMetadata (
    IName src,
    IName dest,
    bool isMove
);
[C++]
HRESULT UpdateMetadata(
  IName* src,
  IName* dest,
  VARIANT_BOOL isMove
);
[C++]

Parameters src [in]
src is a parameter of type IName dest [in]
dest is a parameter of type IName isMove [in] isMove is a parameter of type VARIANT_BOOL

Product Availability

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

Description

This method updates the metadata of the dataset represented by the dest name object to indicate that it was copied (or moved) from the dataset represented by the src name object.

Remarks

The metadata properties that are updated depend on which metadata synchronizers are enabled, but typically a new dataqual/lineage/procstep element is added (along with child elements) indicating that the dataset was copied from the pSrc location, and the idinfo/citation/citeinfo/onlink property will be changed if the FGDCSynchronizer is enabled.

As noted in the interface description, it usually isn't necessary to call this method, since most ways of copying a dataset through ArcCatalog and ArcObjects will perform this operation automatically.

See Also

ICopyHelper Interface