The Import method recursively copies the values of all the properties of the collection and its elements, including all the properties of any subobjects and their elements (for collections), from the specified XML document to persistent storage. This method also writes any unsaved configuration changes that were made before the method was called to persistent storage.
HRESULT Import( [in] IUnknown* pDocument, [in] long OptionalData, [in, optional] BSTR EncryptionPassword, [in, optional] VARIANT_BOOL CleanCollections, [in, optional] VARIANT_BOOL fResetRequiredServices, [in, optional] VARIANT_BOOL fReloadConfiguration );
Pointer to the IUnknown interface on the DOMDocument object from which the information will be imported.
A 32-bit integer value that specifies what optional data to include in the import. This value is a bitwise combination of values from the FpcExportImportOptionalData enumerated type. The bits set should not call for the inclusion of optional data in the import that were not included in the export.
This method returns S_OK if the call is successful; otherwise, it returns an error code.
Sub Import( _ ByRef pDocument As IUnknown, _ ByVal OptionalData As Long, _ [ ByVal EncryptionPassword As String ], _ [ ByVal CleanCollections As Boolean ], _ [ ByVal fResetRequiredServices As Boolean ], _ [ ByVal fReloadConfiguration As Boolean ] _ )
Reference to the DOMDocument30 object from which the information will be imported.
A 32-bit integer value that specifies what optional data to include in the import. This value is a bitwise combination of values from the FpcExportImportOptionalData enumerated type. The bits set should not call for the inclusion of optional data in the import that were not included in the export.
This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.
Any version of the XML DOM document object from Microsoft XML 4.0, XML 3.0, and XML 2.0 can be used.
Imported configuration changes are applied only after the new settings are written to persistent storage and reloaded to the services that use them. Most changes can be applied dynamically without restarting any services. However, some changes can take effect only after the Microsoft Firewall service is restarted. For more information, see Restarting Services After Configuration Changes.
Forefront TMG maintains a bitmask that specifies which services need to be started for the unsaved configuration changes to take effect. This bitmask can be retrieved by calling the GetServiceRestartMask method. Calling the Import method clears all of the bits in this bitmask even if the fResetRequiredServices parameter is set to False (VARIANT_FALSE in C++).
For more information, see About Persistence.
Client | Requires Windows Vista or Windows XP. |
---|---|
Server | Requires Windows Server 2008. |
Version | Requires Forefront Threat Management Gateway (TMG). |
IDL |
Declared in Msfpccom.idl. |
DLL |
Requires Msfpccom.dll. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.