Previous | Next |
Disconnects a client.
Syntax
NSChannelMgr.Client(Index).Disconnect
Return Values
Returns an ActiveX HRESULT error code.
Remarks
If you remove an item from the Clients collection by using Disconnect, you must retrieve a new collection. In Visual Basic, this is done by reissuing. Use the Set method again to refresh the object.
Example
NSChannelMgr.Connect "LocalHost"
Dim Clients
Set Clients = NSChannelMgr.Clients
Clients(0).Disconnect
' Reinitialize the collection
Set Clients = NSChannelMgr.Client
' Show new number of clients
MsgBox (Client.Count & " clients are now connected.")
See Also
Client.ID, Client.ChannelId, Client.Address, Clients Collection Object, Client Objects
Previous | Next |