Delen via


ExportCatalogs Method

Exports the profile catalog (profile schema) in the business data store to an XML file.

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

Syntax

'Declaration
Public Sub ExportCatalogs ( _
    ByRef fileName As String, _
    ByRef removeCredentials As Boolean _
)
'Usage
Dim instance As BusinessDataAdmin2FreeThreaded
Dim fileName As String
Dim removeCredentials As Boolean

instance.ExportCatalogs(fileName, removeCredentials)
public void ExportCatalogs(
    ref string fileName,
    ref bool removeCredentials
)
public:
void ExportCatalogs(
    String^% fileName, 
    bool% removeCredentials
)
public function ExportCatalogs(
    fileName : String, 
    removeCredentials : boolean
)

Parameters

  • fileName
    Type: System..::.String%
    Specifies that file that will contain the exported profile catalog. This is a local path – it cannot be a URL.
  • removeCredentials
    Type: System..::.Boolean%
    true to remove credentials; otherwise false.

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. A value of true indicates remove the credentials. A value of false indicates do not remove the credentials. The default value is true.

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

Permissions

See Also

Reference

BusinessDataAdmin2FreeThreaded Class

BusinessDataAdmin2FreeThreaded Members

Microsoft.CommerceServer.Interop.Profiles Namespace