ISProfile.LoadProvidersByFilter

Description

This function returns the providers loaded on the basis of the selected filter.

Syntax

object.LoadProvidersByFilter(aFilter)

Part Attribute Type Description
object Required
The object always implements the ISProfile interface
aFilter In, Required
The object that defines conditions for filtering

Return Value

ISProviders

Returns the providers loaded on the basis of the selected filter.

Example

Display the number of the providers loaded on the basis of the selected filter and their full names.

Dim aFilter 
Dim aProviders
Dim aProvider
Dim aMessage

Set aFilter = Profile.CreateProvidersFilter
aFilter.Category = 2 'pcProvider  
set aProviders = Profile.LoadProvidersByFilter(aFilter)

aMessage = aMessage & vbNewLine & "Providers Count = " &_ 
  aProviders.Count & vbNewLine 
for each aProvider in aProviders 
  aMessage = aMessage & vbNewLine & aProvider.FullName 
next

Profile.MsgBox(aMessage) 
Note:

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

See also

Version information

Added in v7.8.0