Interface ICopyHelper

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

Provides access to helper functions for post-processing copied metadata.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("7E3D4A40-727C-4D4F-9C06-B0E93C8DFE0A")]
public interface ICopyHelper

Methods

UpdateDatabaseMetadata(IPropertySet, IDatasetName, IDatasetName)

Call this while creating a copy of a dataset in a geodatabase.

void UpdateDatabaseMetadata(IPropertySet destPropertySet, IDatasetName src, IDatasetName dest)

Parameters

destPropertySet IPropertySet
src IDatasetName
dest IDatasetName

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.

Note that unlike the UpdateMetadata method, this will not update the metadata associated with either of the name objects, it will only modify the pDestPropertySet property set (which can then be persisted to the pDest name object through the IMetadata interface).

 

UpdateMetadata(IName, IName, bool)

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

void UpdateMetadata(IName src, IName dest, bool isMove)

Parameters

src IName
dest IName
isMove bool

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.