Exports datasets schema to XML.
[Visual Basic 6.0] Sub ExportDatasetsSchema(
ByVal EnumNameMapping As IEnumNameMapping, _
ByVal outFile As String, _
ByVal Compressed As Boolean, _
ByVal retrieveMetadata As Boolean _
)
[Visual Basic .NET] Public Sub ExportDatasetsSchema ( _ ByVal EnumNameMapping As IEnumNameMapping, _ ByVal outFile As String, _ ByVal Compressed As Boolean, _ ByVal retrieveMetadata As Boolean _ )
[C#] public void ExportDatasetsSchema ( IEnumNameMapping EnumNameMapping, string outFile, bool Compressed, bool retrieveMetadata );
[Java] public void exportDatasetsSchema ( IEnumNameMapping EnumNameMapping, String outFile, Boolean Compressed, Boolean retrieveMetadata ) throws IOException, AutomationException
[C++] HRESULT ExportDatasetsSchema( IEnumNameMapping* EnumNameMapping, BSTR outFile, VARIANT_BOOL Compressed, VARIANT_BOOL retrieveMetadata );
Parameters
EnumNameMapping [in]
EnumNameMapping is a parameter of type IEnumNameMapping
outFile [in]
outFile is a parameter of type BSTR
Compressed [in]
Compressed is a parameter of type VARIANT_BOOL
retrieveMetadata [in]
retrieveMetadata is a parameter of type VARIANT_BOOL
The ExportDatasetsSchema method exports workspace schema only.
In order to export datasets schema, 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 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.