wodPop3Server ActiveX Control - Item Property
      
 

Description

References specific user currently connected to Pop3 server.


Property type

A Pop3User object.  Reference to requested Pop3User object.


Syntax

object.Item(Index)



The Item Property syntax has these parts:

Part Description
object An expression evaluating to an object of type Pop3Users.
Index Required. An Integer value.

Index of the user in the collection of all users.


Remarks

This is readonly property that is used to get reference (to access) of some user from collection of all currently connected users. Once user connects to your server, new Pop3User object will be created and known information will be stored in that object, such as his hostname and time when he connected. Later on, as he issues new commands, more information is stored in that object, such as his username and password.

For instance, to get hostname of first user that connected to your server, you can use code like this:

Debug.Print Pop3.Users.Item(0).HostName
 

or shorter

Debug.Print Pop3.Users(0).HostName

As you can see, Item keyword can be left out from command because it's default property.

Please note that, unlike other collections in VB, indexes start from 0 and go up to Count-1. So, first user has Index=0.