LocalImport Method
Import the catalog from the local database.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CatalogServer (in Microsoft.CatalogServer.dll)
Syntax
'Declaration
Function LocalImport ( _
siteName As String, _
fileName As String, _
inventoryImport As Boolean, _
importOptionsXml As String, _
ignoreInventorySystem As Boolean, _
authorizationMode As Integer, _
authorizationPolicyPath As String _
) As Guid
'Usage
Dim instance As ICatalogImport
Dim siteName As String
Dim fileName As String
Dim inventoryImport As Boolean
Dim importOptionsXml As String
Dim ignoreInventorySystem As Boolean
Dim authorizationMode As Integer
Dim authorizationPolicyPath As String
Dim returnValue As Guid
returnValue = instance.LocalImport(siteName, _
fileName, inventoryImport, importOptionsXml, _
ignoreInventorySystem, authorizationMode, _
authorizationPolicyPath)
Guid LocalImport(
string siteName,
string fileName,
bool inventoryImport,
string importOptionsXml,
bool ignoreInventorySystem,
int authorizationMode,
string authorizationPolicyPath
)
Guid LocalImport(
String^ siteName,
String^ fileName,
bool inventoryImport,
String^ importOptionsXml,
bool ignoreInventorySystem,
int authorizationMode,
String^ authorizationPolicyPath
)
function LocalImport(
siteName : String,
fileName : String,
inventoryImport : boolean,
importOptionsXml : String,
ignoreInventorySystem : boolean,
authorizationMode : int,
authorizationPolicyPath : String
) : Guid
Parameters
- siteName
Type: System..::.String
The name of the Commerce site to which this Catalog will connect to.
- fileName
Type: System..::.String
The name of the file that is being imported.
- inventoryImport
Type: System..::.Boolean
true to import the inventory; otherwise, false.
- importOptionsXml
Type: System..::.String
The set of options to use for a catalog import operation.
- ignoreInventorySystem
Type: System..::.Boolean
A flag indicating that this connection should ignore an inventory system if one is present. true to ignore an inventory system; otherwise, false.
- authorizationMode
Type: System..::.Int32
A flag indicating that this connection should ignore an inventory system if one is present. true to ignore the inventory system; otherwise, false.
- authorizationPolicyPath
Type: System..::.String
Specifies the path where the authorization policy for the site can be found.
Return Value
Type: System..::.Guid
A GUID that identifies the LocalImport(String, String, Boolean, String, Boolean, Int32, String) operation.
Remarks
Interface used when importing a catalog. This method provides a GUID for importing a catalog from the local database.
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.