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
- importOptions
Type: Microsoft.CommerceServer.Inventory..::.InventoryImportOptions
The inventory import options.
- fileName
Type: System..::.String
The file name containing the inventory catalogs.
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
- 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.