ISProvidersFilter.Category

Description

This filter property is used to load the collection of providers with the specified category.

Syntax

object.Category

Part Attribute Type Description
object Required
The object always implements the ISProvidersFilter interface

Return Value

TProviderCategory

Example

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

Dim aFilter 
Dim aProviders
Dim aProvider
Dim aMessage

Set aFilter = Profile.CreateProvidersFilter

aFilter.Category = 2 'pcProvider

Set aProviders = Profile.LoadProvidersByFilter(aFilter)

aMessage = vbNewLine &_
  "The number of the providers of the specified category (" &_
  aFilter.Category  & ") is " & aProviders.Count
  
aMessage = aMessage & vbNewLine & vbNewLine &_
  "Full Name:" & vbTab & "ID:" 

for each aProvider in aProviders 
  aMessage = aMessage & vbNewLine &_
    aProvider.FullName & vbTab &_
    aProvider.ID  
next

Profile.MsgBox (aMessage)  
Note:

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

Version information

Added in v7.8.0