ArcObjects Library Reference (GeoDatabaseDistributed)  

IGdbXmlExport.ExportWorkspace Method

Exports a workspace to XML.

[Visual Basic .NET]
Public Sub ExportWorkspace ( _
    ByVal Workspace As IWorkspace, _
    ByVal outFile As String, _
    ByVal BinaryGeometry As Boolean, _
    ByVal Compressed As Boolean, _
    ByVal retrieveMetadata As Boolean _
)
[C#]
public void ExportWorkspace (
    IWorkspace Workspace,
    string outFile,
    bool BinaryGeometry,
    bool Compressed,
    bool retrieveMetadata
);
[C++]
HRESULT ExportWorkspace(
  IWorkspace* Workspace,
  BSTR outFile,
  VARIANT_BOOL BinaryGeometry,
  VARIANT_BOOL Compressed,
  VARIANT_BOOL retrieveMetadata
);
[C++]

Parameters

Workspace [in]

  Workspace is a parameter of type IWorkspace

outFile [in]   outFile is a parameter of type BSTR BinaryGeometry [in]   BinaryGeometry is a parameter of type VARIANT_BOOL Compressed [in]   Compressed is a parameter of type VARIANT_BOOL retrieveMetadata [in]   retrieveMetadata is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

The ExportWorkspace method exports a geodatabase workspace schema and data.

In order to export a workspace, you need to pass in IWorkspace.  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