Connection Property  
 

Return the handle for the specified dial-up networking session.

Syntax

[form.]object.Connection(Index)

Remarks

The Connection property array can be used to enumerate the active dial-up networking sessions on the local system. The index is zero-based, and the number of connections is returned by the Connections property. The property returns a long integer value which represents the handle to the session. Setting the Handle property to this value will cause the control to inherit the session and the control's properties will be updated with information about the connection.

Specifying an index greater than the number of available connections will generate an error.

Data Type

Integer (Int32)

See Also

AutoConnect Property, Connections Property, IsConnected Property