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
- fileURL
Type: System..::.String%
The URL of the XML file to be imported.
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
- 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.
See Also
Reference
BusinessDataAdminFreeThreaded Class