Partager via


ExportXml Method (InventoryExportOptions, String)

Exports the contents of one or more inventory catalogs to an XML file.

Namespace:  Microsoft.CommerceServer.Inventory
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Function ExportXml ( _
    exportOptions As InventoryExportOptions, _
    fileName As String _
) As ExportProgress
'Usage
Dim instance As InventoryContext
Dim exportOptions As InventoryExportOptions
Dim fileName As String
Dim returnValue As ExportProgress

returnValue = instance.ExportXml(exportOptions, _
    fileName)
public ExportProgress ExportXml(
    InventoryExportOptions exportOptions,
    string fileName
)
public:
ExportProgress^ ExportXml(
    InventoryExportOptions^ exportOptions, 
    String^ fileName
)
public function ExportXml(
    exportOptions : InventoryExportOptions, 
    fileName : String
) : ExportProgress

Parameters

  • fileName
    Type: System..::.String
    The file to export the inventory catalog contents to.

Return Value

Type: Microsoft.CommerceServer.Catalog..::.ExportProgress
An ExportProgress object.

Remarks

Use this method to export inventory data to an XML file. Creates an XML file that contains Inventory information. The exportStream virtual file contains set of options to use for a catalog export operation. The options consist if the exported catalog is a base or virtual catalog, the language of the exported catalog, an indicator to determine if the dependent base catalog should be exported along with the virtual catalog, and the inventory sets to export.

Permissions

See Also

Reference

InventoryContext Class

InventoryContext Members

ExportXml Overload

Microsoft.CommerceServer.Inventory Namespace