Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IFPCPersist::ExportToFile[C++] | FPCPersist.ExportToFile [Visual Basic]

Internet Security and Acceleration Server 2004/2006 SDK

The ExportToFile method recursively writes the all of the properties of the object and its subobjects to the specified XML file. For a collection, the method also writes all of its elements and their properties to the XML file.


HRESULT ExportToFile(
  BSTR XmlFileName,
  long OptionalData,
  BSTR EncryptionPassword,
  BSTR Comment );

Parameters

XmlFileName
[in] BSTR that specifies the name of the XML file to which the data will be exported.
OptionalData
[in] A 32-bit integer value that specifies what optional data to include in the export. This value is a bitwise combination of values from the FpcExportImportOptionalData enumerated type.
EncryptionPassword
[in, optional] BSTR that specifies a password for encrypting the exported information. The default value is an empty BSTR. This parameter must be specified if the fpcExportImportPasswords bit is set in the OptionalData parameter.
Comment
[in, optional] BSTR that specifies a comment for the exported information. This parameter contains an empty string by default.

Return Values

This method returns S_OK if the call is successful; otherwise, it returns an error code.

Remarks

For more information, see About Persistence.

The ExportToFile method recursively writes the all of the properties of the object and its subobjects to the specified XML file. For a collection, the method also writes all of its elements and their properties to the XML file.


Sub ExportToFile( _
  ByVal XmlFileName As String, _
  ByVal OptionalData As Long, _
  [ ByVal EncryptionPassword As String ], _
  [ ByVal Comment As String ] _
)

Parameters

XmlFileName
[in] String that specifies the name of the XML file to which the data will be exported.
OptionalData
[in] A 32-bit integer value that specifies what optional data to include in the export. This value is a bitwise combination of values from the FpcExportImportOptionalData enumerated type.
EncryptionPassword
[in, optional] String that specifies a password for encrypting the exported information. The default value is an empty string. This parameter must be specified if the fpcExportImportPasswords bit is set in the OptionalData parameter.
Comment
[in, optional] String that specifies a comment for the exported information. This parameter is an empty string by default.

Return Values

This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.

Remarks

For more information, see About Persistence.

Example Code

For a VBScript code example that shows how to use this method to export the configuration of an ISA Server computer to a specified .xml file, see Exporting and Importing an ISA Server Configuration.

Requirements

Client Requires Windows XP.
Server Requires Windows Server 2003. Requires Windows Server 2003 or Windows 2000 for ISA Server 2004 Standard Edition.
Version Requires Internet Security and Acceleration (ISA) Server 2006 or ISA Server 2004.
IDL

Declared in Msfpccom.idl.

DLL Requires Msfpccom.dll.

See Also

FPCPersist

Show:
© 2015 Microsoft