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

IGdbXmlExport.ExportDatasets Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GeodatabaseDistributed > ESRI.ArcGIS.GeoDatabaseDistributed > Interfaces > IG > IGdbXmlExport Interface > IGdbXmlExport.ExportDatasets Method
ArcGIS Developer Help

IGdbXmlExport.ExportDatasets Method

Exports datasets to XML.

[Visual Basic .NET]
Public Sub ExportDatasets ( _
    ByVal EnumNameMapping As IEnumNameMapping, _
    ByVal outFile As String, _
    ByVal BinaryGeometry As Boolean, _
    ByVal Compressed As Boolean, _
    ByVal retrieveMetadata As Boolean _
public void ExportDatasets (
    IEnumNameMapping EnumNameMapping,
    string outFile,
    bool BinaryGeometry,
    bool Compressed,
    bool retrieveMetadata
HRESULT ExportDatasets(
  IEnumNameMapping* EnumNameMapping,
  BSTR outFile,
  VARIANT_BOOL BinaryGeometry,
  VARIANT_BOOL Compressed,
  VARIANT_BOOL retrieveMetadata
EnumNameMapping [in]

EnumNameMapping is a parameter of type IEnumNameMapping* outFile [in]
outFile is a parameter of type BSTR BinaryGeometry [in]
BinaryGeometry is a parameter of type bool Compressed [in]
Compressed is a parameter of type bool retrieveMetadata [in]
retrieveMetadata is a parameter of type bool

Product Availability

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


The ExportDatasets method exports workspace schema and data.

In order to export datasets, you need to pass in IEnumNameMapping.  The outFile is a string that identifies the output XML filename. The filename must have a "xml" file extension, for example, "C:\temp\file.xml".

If you set binaryGeometry to TRUE, the exported workspace will be in binary format.  Otherwise, the workspace will be in normalized format.

If you set compressed to TRUE, the outFile file extension must be set to .ZIP or .Z.

If you set retrieveMetadata to TRUE, the resulting XML file will contain metadata.  Metadata must be created prior to exporting.

See Also

IGdbXmlExport Interface | IGdbXmlExport Interface