Microsoft Chat Server SDK Reference |
---|
This property returns a single ChatBan object from the collection.
Set Ban = ChatBans.Item(Index|Key)
ChatBans.Item(Index|Key) = Ban
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 Entry1 As CHATCFGLib.IChatBan
Set Entry1 = ChatConfiguration.ChatBans(1)
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 Entry As CHATCFGLib.IChatBan
For Each Entry In ChatConfiguration.ChatBans
Debug.Print Entry.Mask
Next
© 1998 Microsoft Corporation. All rights reserved.