BusinessDataAdmin2FreeThreaded.ExportCatalogs Method (PIA)

Use this method to export the profile catalog (profile schema) in the business data store to an XML file.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Profiles
…
Public sub FunctionName(sFileName As String,
  bRemoveCredentials As Boolean,
) 

[C#]

using Microsoft.CommerceServer.Interop.Profiles;
…
public void FunctionName(stringsFileName,
  boolbRemoveCredentials);

Parameters

[Visual Basic .NET]

  • sFileName
    A String that specifies that file that will contain the exported profile catalog. This is a local path – it cannot be a URL.
  • bRemoveCredentials
    A Boolean that specifies whether to remove the credentials from the connection strings in the profile catalog. A value of True indicates remove the credentials. A value of False indicates do not remove the credentials. The default value is True.

[C#]

  • sFileName
    A string that specifies that file that will contain the exported profile catalog. This is a local path – it cannot be a URL.
  • bRemoveCredentials
    A bool that specifies whether to remove the credentials from the connection strings in the profile catalog. A value of True indicates remove the credentials. A value of False indicates do not remove the credentials. The default value is True.

Exceptions

This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

Remarks

You must call the Connect method before calling this method.

The exported XML document will conform to the schema specified in file MSCSProfileSchema.xml, and will contain both site terms and profile definitions.

If the bRemoveCredentials parameter is True, then the credentials (user name and password) will be removed from all connection strings. These credentials will have to be replaced before the catalog can be imported. If the catalog is imported through Commerce Server Manager, the user must enter a user name and password for each data source partition in the catalog. See Exporting Profile Schema for more information.

If the bRemoveCredentials parameter is False, then the credentials will be exported in plain text with the rest of the catalog.

Requirements

Namespace: Microsoft.CommerceServer.Interop.Profiles

Platforms: Windows 2000, Windows Server 2003

Assembly: bizdataadmin (in bizdadaadmin.dll)

See Also

BusinessDataAdmin2FreeThreaded Class

BusinessDataAdmin2FreeThreaded Methods

Copyright © 2005 Microsoft Corporation.
All rights reserved.