Microsoft Internet Security and Acceleration Server 2004 SDK |
The Import method recursively copies the values of all the properties of the object and of its subobjects from the specified XML document to persistent storage. For a collection, the method also imports all of its elements and their properties from the XML document.
HRESULT Import( IUnknown* pDocument, long OptionalData, BSTR EncryptionPassword, VARIANT_BOOL CleanCollections, VARIANT_BOOL fResetRequiredServices, VARIANT_BOOL fReloadConfiguration );
This method returns S_OK if the call is successful; otherwise, it returns an error code.
Any version of the XML DOM document object from Microsoft XML 2.0 and later can be used.
ISA Server maintains a bitmask that specifies which services need to be started for the 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 VARIANT_FALSE.
If the fReloadConfiguration parameter is set to VARIANT_FALSE the current values of the object's properties will be written to persistent storage without updating the configuration being used by the ISA Server services. The configuration used by each service will not be updated until the service is restarted.
For more information, see About Persistence.
The Import method recursively copies the values of all the properties of the object and of its subobjects from the specified XML document to persistent storage. For a collection, the method also imports all of its elements and their properties from the XML document.
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 ] _ )
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 2.0 and later can be used.
ISA Server maintains a bitmask that specifies which services need to be started for the 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.
If the fReloadConfiguration parameter is set to False the current values of the object's properties will be written to persistent storage without updating the configuration being used by the ISA Server services. The configuration used by each service will not be updated until the service is restarted.
For more information, see About Persistence.
Server: Requires Windows Server 2003 or
Windows 2000.
Version: Requires Internet Security and Acceleration
Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration
Server 2004 Administration Library.