This function returns the entities of the provider with the specified source.
object.GetEntityIdBySource(aSource)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProvider interface |
|
aSource |
In, Required | string |
The entity source |
Add the entities with the source "My source 1" to the provider. Get the entities with the specified source and display their count.
Dim aFilter
Dim aProviders
Dim aProvider
Dim aEntityCollection
Dim aMessage
Set aFilter = Profile.CreateProvidersFilter
aFilter.Category = 2 'pcProvider
set aProviders = Profile.LoadProvidersByFilter(aFilter)
aMessage = aMessage & vbNewLine &_
"The number of the providers is " & aProviders.Count
for each aProvider in aProviders
aProvider.AddEntityId "My source 1", "My identifier", "My value A"
aProvider.AddEntityId "My source 2", "My identifier", "My value B"
aProvider.Save
set aEntityCollection = aProvider.GetEntityIdBySource ("My source 1")
aMessage = aMessage & vbNewLine & aProvider.FullName &_
" has " & aEntityCollection.Count & " linked entities "
next
Profile.MsgBox (aMessage)
In Profile Client v8 on User Interface Entity Source can be found in
.