ExpressionStore.Export Method (PIA)
Use this method to export the expressions stored in the expression store to a file.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Targeting
…
Public Sub Export(bstrFileName As String)
[C#]
using Microsoft.CommerceServer.Interop.Targeting;
…
public void Export(stringbstrFileName);
Parameters
[Visual Basic .NET]
- bstrFileName
A String that contains the name of the file used to store the expressions.
[C#]
- bstrFileName
A string that contains the name of the file used to store the expressions.
Exceptions
This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
[Visual Basic .NET]
The following table shows the custom COM errors that a COMException can wrap.
Value | Description |
---|---|
&H8110001F | Invalid connection |
&H8110000D | No connection string specified |
[C#]
The following table shows the custom COM errors that COMException can wrap.
Value | Description |
---|---|
0x8110001F | Invalid connection |
0x8110000D | No connection string specified |
Remarks
If the file to which you export does not exist prior to the call, the method will fail. If an absolute path is not specified, the file is placed in the \WINNT\System32 folder.
After the method successfully completes, the file contains the XML schema for the expression Recordset followed by the XML representation of each expression Recordset in the expression store.
Use the Import method to copy the expressions in a file to the expression store.
Call the Connect method before calling the Export method.
[Visual Basic .NET]
Example
' oExpressionStore is an ExpressionStore object connected to
' a valid expression store.
oExpressionStore.Export ("Expressions.xml")
Requirements
Namespace: Microsoft.CommerceServer.Interop.Targeting
Platforms: Windows 2000, Windows Server 2003
Assembly: exprarchlib (in exprarchlib)
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.