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


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

ICopyHelper.UpdateDatabaseMetadata Method

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

[Visual Basic .NET]
Public Sub UpdateDatabaseMetadata ( _
    ByVal destPropertySet As IPropertySet, _
    ByVal src As IDatasetName, _
    ByVal dest As IDatasetName _
)
[C#]
public void UpdateDatabaseMetadata (
    IPropertySet destPropertySet,
    IDatasetName src,
    IDatasetName dest
);
[C++]
HRESULT UpdateDatabaseMetadata(
  IPropertySet* destPropertySet,
  IDatasetName* src,
  IDatasetName* dest
);
[C++]

Parameters destPropertySet [in]
destPropertySet is a parameter of type IPropertySet src [in]
src is a parameter of type IDatasetName dest [in]
dest is a parameter of type IDatasetName

Product Availability

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

Description

This method will update the destPropertySet with properties indicating that it is a dataset represented by the dest name object and that it was copied 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.

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).

 

See Also

ICopyHelper Interface