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

IGdbXmlExport.ExportWorkspaceSchema 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.ExportWorkspaceSchema Method
ArcGIS Developer Help

IGdbXmlExport.ExportWorkspaceSchema Method

Exports a workspace schema to XML.

[Visual Basic .NET]
Public Sub ExportWorkspaceSchema ( _
    ByVal Workspace As IWorkspace, _
    ByVal outFile As String, _
    ByVal Compressed As Boolean, _
    ByVal retrieveMetadata As Boolean _
public void ExportWorkspaceSchema (
    IWorkspace Workspace,
    string outFile,
    bool Compressed,
    bool retrieveMetadata
HRESULT ExportWorkspaceSchema(
  IWorkspace* Workspace,
  BSTR outFile,
  VARIANT_BOOL Compressed,
  VARIANT_BOOL retrieveMetadata
Workspace [in]

Workspace is a parameter of type IWorkspace* outFile [in]
outFile is a parameter of type BSTR 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 ExportWorkspaceSchema method exports workspace schema only.

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