Microsoft Chat Server SDK Reference |
---|
This property returns a single user object from the collection.
Set User = ChatUsers.Item(Index|Key)
You can use either an Index or Key value, but not both. Since Item is the default property, it does not need to be specified. For example, the following code is syntactically correct:
Dim User1 As CHATSVCLib.IChatUser
Set User1 = ChatServer.Users("User1")
You can use a For Each…Next loop to iterate through all objects in the collection. The following Visual Basic example shows how this is done:
Dim User As CHATSVCLib.IChatUser
For Each User In ChatServer.Users
Debug.Print User.Nick
Next
© 1998 Microsoft Corporation. All rights reserved.