Connect Method  
 

Establish a connection with a server.

Syntax

object.Connect( [EntryName] )

Parameters

EntryName
An optional string value that specifies the name of the phonebook entry to use to establish the connection. If this argument is not provided, the value of the PhoneEntry property is used.

Return Value

A value of zero is returned if the connection was successful. Otherwise, a non-zero error code is returned which indicates the cause of the failure.

Remarks

The Connect method establishes a dial-up networking connection with a service provider using the specified phonebook entry. If this method is called without any arguments and PhoneEntry property has not been set, then the current values of the PhoneNumber, UserName, UserDomain, and Password properties will be used to create a temporary phonebook entry.

See Also

Disconnect Method, CallbackNumber Property, Password Property, PhoneEntry Property, PhoneNumber Property, UserName Property, UserDomain Property