Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCHTTPCacheConfiguration::Save[C++]

FPCHTTPCacheConfiguration.Save [Visual Basic]

[C++]

The Save method writes the current values of all of the object's properties to persistent storage. It is important to remember that any changes made by scripts and programs will not be saved until after the Save method is called.

HRESULT Save(
  VARIANT_BOOL fResetRequiredServices,
  VARIANT_BOOL fReloadConfiguration
);

Parameters

fResetRequiredServices
[in, optional] Boolean value that indicates whether to restart the services that need to be restarted for any of the changes saved to take effect. The default value is VARIANT_FALSE.
fReloadConfiguration
[in, optional] Boolean value that indicates whether the call will include synchronous reloading of all changes that can be applied dynamically without restarting services. The default value is VARIANT_TRUE.

Return Values

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

Remarks

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.

ISA Server maintains a bitmask that specifies which services need to be started for currently unsaved changes to take effect. This bitmask can be retrieved by calling the GetServiceRestartMask method on an object that contains this object as a subobject. Calling the Save 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 or the new settings are reloaded by another call to Save.

[Visual Basic]

The Save method writes the current values of all of the object's properties to persistent storage. It is important to remember that any changes made by scripts and programs will not be saved until after the Save method is called.

Sub Save( _
  [ ByVal fResetRequiredServices As Boolean ], _
  [ ByVal fReloadConfiguration As Boolean ] _
)

Parameters

fResetRequiredServices
[in, optional] Boolean value that indicates whether to restart the services that need to be restarted for any of the changes saved to take effect. The default value is False.
fReloadConfiguration
[in, optional] Boolean value that indicates whether the call will include synchronous reloading of all the saved configuration changes that can be applied dynamically without restarting services. The default value is True.

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

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.

ISA Server maintains a bitmask that specifies which services need to be started for currently unsaved changes to take effect. This bitmask can be retrieved by calling the GetServiceRestartMask method on an object that contains this object as a subobject. Calling the Save 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 or the new settings are reloaded by another call to Save.

Requirements

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.

See Also

FPCHTTPCacheConfiguration