Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCAccounts::Remove[C++]

FPCAccounts.Remove [Visual Basic]

[C++]

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

HRESULT Remove(
  VARIANT Index
);

Parameters

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

Return Values

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

Remarks

The Index parameter is either in the form of an index or a name. The domain\user-name format can be used to specify an account by name.

[Visual Basic]

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

Sub Remove( _
  ByVal Index As Variant _
)

Parameters

Index
[in] Required. Name or one-based index of the FPCAccount 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

The Index parameter is either in the form of an index or a name. For example, the following code specifies an account by name in domain\user-name format.

Dim accnts As FPCAccounts
...
accnts.Remove("africa\john")

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

FPCAccounts