ISProviderGroups.Count

Description

The number of the provider groups within the collection.

Syntax

object.Count

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

Return Value

int

Example

Display the number of the provider groups loaded on the basis of the selected filter, their names and IDs.

Dim aFilter
Dim aProviderGroups, aProviderGroup
Dim aMessage
Dim i

Set aFilter = Profile.CreateProviderGroupFilter
aFilter.Code = "APP"
set aProviderGroups = Profile.LoadProviderGroups(aFilter)

aMessage = "Provider Groups Count = " & aProviderGroups.Count

for i = 0 to aProviderGroups.Count - 1
  set aProviderGroup = aProviderGroups.Items(i)
  aMessage = aMessage & vbNewLine &_
    "Provider group '" & aProviderGroup.Name & "' has ID = " & aProviderGroup.ID
next

Profile.MsgBox(aMessage) 
Note:

In Profile Client v8 on User Interface Provider Groups can be found in Organisation > People & Places > People and Places.

Version information

Added in v7.8.0