ContentServers.Count Property

The ContentServers.Count property returns a Long value specifying the number of objects in a ContentServers collection.

Syntax

ContentServers.Count

Remarks

You can use this property with a For...Next statement to carry out an operation on the objects in a collection, as shown in the following example.

Example

The following example uses the count property to enumerate through a ContentServers collection object to output the Ids of each ContentServer.

MediaServer1.SetServer ("MyServer")
Dim cservers As IMSrvCServers
Set cservers = MediaServer1.CServers
For i=0 To cserver.Count – 1
    MsgBox cservers(i).ID
Next i

See Also

Clients object, Content Servers object, Content Server Disks object, Titles object, Walkers object

© 1996-1998 Microsoft Corporation. All rights reserved.