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
- exportOptions
Type: Microsoft.CommerceServer.Inventory..::.InventoryExportOptions
The inventory export options. Should not be nullNothingnullptra null reference (Nothing in Visual Basic).
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.