Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCArrays::Connect[C++]

FPCArrays.Connect [Visual Basic]

[C++]

The Connect method connects to the array of the specified server, adds the FPCArray object to the collection, and returns a reference to the array object.

HRESULT Connect(
  BSTR Server,
  BSTR UserName,
  BSTR Domain,
  BSTR Password,
  IFPCArray** ppArray
);

Parameters

Server
[in] BSTR that specifies the server to which to connect.
UserName
[in, optional] BSTR that specifies the user name. The default value is an empty BSTR.
Domain
[in, optional] BSTR that specifies the name of the user's domain. The default value is an empty BSTR.
Password
[in, optional] BSTR that specifies the password. The default value is an empty BSTR.
ppArray
[out] Address of an interface pointer that on return points to an IFPCArray interface that represents the array of the specified server.

Return Values

This method can return one of the following:

[Visual Basic]

The Connect method connects to the array of the specified server, adds the FPCArray object to the collection, and returns a reference to the array object.

Function Connect( _
  ByVal Server As String, _
  [ ByVal UserName As String ], _
  [ ByVal Domain As String ], _
  [ ByVal Password As String ] _
) As FPCArray

Parameters

Server
[in] String that specifies the server to which to connect.
UserName
[in, optional] String that specifies the user name. The default value is an empty string.
Domain
[in, optional] String that specifies the name of the user's domain. The default value is an empty string.
Password
[in, optional] String that specifies the password. The default value is an empty string.

Return Values

This method returns a reference to the FPCArray object requested if successful. Otherwise, an error is raised that can be intercepted by using an error handler.

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

FPCArrays