ISOrgMembers.Count

Description

The number of the organisation nodes within the collection.

Syntax

object.Count

Part Attribute Type Description
object Required
The object always implements the ISOrgMembers interface
Restriction: This property is readonly.

Return Value

int

Example

Display the number of the organisation nodes within the collection.

Dim aFilter
Dim aOrgMember
Dim aOrgMembers
Dim aMessage

Set aFilter = Profile.CreateOrgMembersFilter
set aOrgMembers = Profile.LoadOrgMembers(aFilter)

aMessage = "The number of the org nodes is " & aOrgMembers.Count & ":"
for i = 0 to aOrgMembers.Count - 1
  set aOrgMember = aOrgMembers.Item(i)
  aMessage = aMessage & vbNewLine & (i + 1) & ") " & aOrgMember.Name 
next      

Profile.MsgBox(aMessage)    
Note:

In Profile Client v8 on User Interface Organisation Nodes can be found in Organisation > People & Places > Organisational Structure.

Version information

Added in v7.8.0