ImportXml Method (InventoryImportOptions, Stream)
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Imports a stream on the server.
Namespace: Microsoft.CommerceServer.Inventory
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Function ImportXml ( _
importOptions As InventoryImportOptions, _
importStream As Stream _
) As ImportProgress
'Usage
Dim instance As InventoryContext
Dim importOptions As InventoryImportOptions
Dim importStream As Stream
Dim returnValue As ImportProgress
returnValue = instance.ImportXml(importOptions, _
importStream)
public ImportProgress ImportXml(
InventoryImportOptions importOptions,
Stream importStream
)
public:
ImportProgress^ ImportXml(
InventoryImportOptions^ importOptions,
Stream^ importStream
)
public function ImportXml(
importOptions : InventoryImportOptions,
importStream : Stream
) : ImportProgress
Parameters
- importOptions
Type: Microsoft.CommerceServer.Inventory..::.InventoryImportOptions
The catalog import options.
- importStream
Type: System.IO..::.Stream
The stream to import.
Return Value
Type: Microsoft.CommerceServer.Catalog..::.ImportProgress
An ImportProgress class containing the progress of the import operation.
Remarks
Use this method to import an XML stream 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.