Jaa


ImportXml Method (InventoryImportOptions, String)

Imports inventory catalogs from an XML file.

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

Syntax

'Declaration
Public Function ImportXml ( _
    importOptions As InventoryImportOptions, _
    fileName As String _
) As ImportProgress
'Usage
Dim instance As InventoryContext
Dim importOptions As InventoryImportOptions
Dim fileName As String
Dim returnValue As ImportProgress

returnValue = instance.ImportXml(importOptions, _
    fileName)
public ImportProgress ImportXml(
    InventoryImportOptions importOptions,
    string fileName
)
public:
ImportProgress^ ImportXml(
    InventoryImportOptions^ importOptions, 
    String^ fileName
)
public function ImportXml(
    importOptions : InventoryImportOptions, 
    fileName : String
) : ImportProgress

Parameters

Return Value

Type: Microsoft.CommerceServer.Catalog..::.ImportProgress
An ImportProgress object which can be used to get the progress of the import operation and cancel the operation.

Remarks

Use this method to import an XML file as inventory data.

Permissions

See Also

Reference

InventoryContext Class

InventoryContext Members

ImportXml Overload

Microsoft.CommerceServer.Inventory Namespace