Share via


Entity.FindAssociated Method (EntityInstanceCollection, LobSystemInstance)

NOTE: This API is now obsolete.

Gets the entity instances associated with a given entity instance collection.

Namespace:  Microsoft.Office.Server.ApplicationRegistry.MetadataModel
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
<ObsoleteAttribute("O12 Application Registry API is deprecated. Please use BusinessData.",  _
    False)> _
Public Function FindAssociated ( _
    sourceEntityInstances As EntityInstanceCollection, _
    lobSystemInstance As LobSystemInstance _
) As IEntityInstanceEnumerator
'Usage
Dim instance As Entity
Dim sourceEntityInstances As EntityInstanceCollection
Dim lobSystemInstance As LobSystemInstance
Dim returnValue As IEntityInstanceEnumerator

returnValue = instance.FindAssociated(sourceEntityInstances, _
    lobSystemInstance)
[ObsoleteAttribute("O12 Application Registry API is deprecated. Please use BusinessData.", 
    false)]
public IEntityInstanceEnumerator FindAssociated(
    EntityInstanceCollection sourceEntityInstances,
    LobSystemInstance lobSystemInstance
)

Parameters

Return Value

Type: Microsoft.Office.Server.ApplicationRegistry.Runtime.IEntityInstanceEnumerator
An entity instance collection enumerator.

Remarks

This form of FindAssociated tries to infer which Association to use, by finding all Associations where this Entity is the Destination. If more than one Association is found, this method will throw.

See Also

Reference

Entity Class

Entity Members

FindAssociated Overload

Microsoft.Office.Server.ApplicationRegistry.MetadataModel Namespace