Partager via


ExportXml Method (InventoryExportOptions, Stream)

Exports the contents of one or more inventory catalogs to the specified Stream.

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

Syntax

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

returnValue = instance.ExportXml(exportOptions, _
    exportStream)
public ExportProgress ExportXml(
    InventoryExportOptions exportOptions,
    Stream exportStream
)
public:
ExportProgress^ ExportXml(
    InventoryExportOptions^ exportOptions, 
    Stream^ exportStream
)
public function ExportXml(
    exportOptions : InventoryExportOptions, 
    exportStream : Stream
) : ExportProgress

Parameters

  • exportStream
    Type: System.IO..::.Stream
    The stream to export the inventory catalog contents. Should not be nullNothingnullptra null reference (Nothing in Visual Basic).

Return Value

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

Remarks

Use this method to export inventory data to an XML stream. Creates an XML stream 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