This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Catalog > ESRI.ArcGIS.Catalog > Interfaces > IM > IMetadataImport Interface > IMetadataImport.Import Method (ArcObjects .NET 10.4 SDK) |
Imports metadata from the specified location.
[Visual Basic .NET] Public Sub Import ( _ ByVal source As String, _ ByVal destination As IMetadata _ )
[C#] public void Import ( string source, IMetadata destination );
The Import method uses the document specified as the source parameter metadata for the destination ArcGIS item. The destination object must be of type IMetadata. If the destination object already has metadata it will be entirely replaced by the imported information.
This method can be used to provide a foundation for metadata, that is by importing information such as contact and distribution information that is the same for many items. This can help to reduce input errors for common information. Letting ArcGIS automatically update the imported content further eliminates many additional steps when creating an item�s metadata.