Share via


ImportCatalog Method

Loads an XML document describing a profile-catalog from the specified fileURL, and imports the catalog into the current profile data store.

Namespace:  Microsoft.CommerceServer.Interop.Profiles
Assembly:  Microsoft.CommerceServer.Interop.Profiles.BizDataAdmin (in Microsoft.CommerceServer.Interop.Profiles.BizDataAdmin.dll)

Syntax

'Declaration
Public Sub ImportCatalog ( _
    ByRef fileURL As String _
)
'Usage
Dim instance As BusinessDataAdminFreeThreaded
Dim fileURL As String

instance.ImportCatalog(fileURL)
public void ImportCatalog(
    ref string fileURL
)
public:
void ImportCatalog(
    String^% fileURL
)
public function ImportCatalog(
    fileURL : String
)

Parameters

Exceptions

Exception Condition
ERR_NOCONNECTION

The profile data store connection is not open.

ERR_WRONG_PARAM

The fileURL is nullNothingnullptra null reference (Nothing in Visual Basic).

ERR_XML_PARSE

There is a load or parse error in the XML.

Remarks

Loads the specified XML document describing the catalog to load. Importing the catalog requires deleting any existing catalog and then creating the new catalog.

Permissions

See Also

Reference

BusinessDataAdminFreeThreaded Class

BusinessDataAdminFreeThreaded Members

Microsoft.CommerceServer.Interop.Profiles Namespace