Microsoft Chat Server SDK Reference

Item Property

This property returns a single ChatExtension object from the collection.

Syntax

Set Extension = ChatUnboundExtensions.Item(Index|Key)

Parameters

Extension
A ChatExtension object, or Nothing if Index is out of range or if Key cannot be found.
Index
A numeric index into the array of objects. The first item is stored at index 1.
Key
A string representing the Name property of the extension.

Remarks

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.IChatExtension
Set Entry1 = ChatConfiguration.ChatExtensions.ChatUnboundExtensions("{F1CC3C17-09E3-11D1-873D-00C04FB6E8E9}")

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.IChatExtension
For Each Entry In ChatConfiguration.ChatExtensions.ChatUnboundExtensions
   Debug.Print Entry.Name
Next

© 1998 Microsoft Corporation. All rights reserved.