Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCCacheDrives::Remove[C++]

FPCCacheDrives.Remove [Visual Basic]

[C++]

The Remove method removes the specified FPCCacheDrive object from the collection.

HRESULT Remove(
  VARIANT Index
);

Parameters

Index
[in] Required. Name or one-based index of the FPCCacheDrive object to remove.

Return Values

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

Remarks

When you remove a cache drive from the FPCCacheDrives collection, and have saved changes by using the Save method, the Microsoft Firewall service must be restarted for your change to take effect. To stop and restart the Firewall service, use the IFPCArray::RestartServices method.

[Visual Basic]

The Remove method removes the specified FPCCacheDrive object from the collection.

Sub Remove( _
  ByVal Index As Variant _
)

Parameters

Index
[in] Required. Name or one-based index of the FPCCacheDrive object to remove.

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

When you remove a cache drive from the FPCCacheDrives collection, and have saved changes by using the Save method, the Microsoft Firewall service must be restarted for your change to take effect. To stop and restart the Firewall service, use the FPCArray.RestartServices method.

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

FPCCacheDrives