Share via


EntityInstanceCollection Class

Represents a collection of IEntityInstance objects.

Inheritance Hierarchy

System.Object
  System.Collections.Generic.List<IEntityInstance>
    Microsoft.Office.Server.ApplicationRegistry.Runtime.EntityInstanceCollection

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class EntityInstanceCollection _
    Inherits List(Of IEntityInstance)
'Usage
Dim instance As EntityInstanceCollection
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class EntityInstanceCollection : List<IEntityInstance>

Remarks

You use the EntityInstanceCollection class to construct a collection of entity instances using the object model. This is used to execute Associations. Associations take one or more Source EntityInstances and return related Destination EntityInstances. Since the number of sources in an Association can vary from 1..n, when you have more than 1 source, you need to supply a collection of instances before a single Association can be executed. The EntityInstanceCollection will hold all the source EntityInstances for a single Association execution.

Note

The Business Data Catalog always returns the entity instances returned by back-end methods as an IEntityInstanceEnumerator object and never as an EntityInstanceCollection object.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

EntityInstanceCollection Members

Microsoft.Office.Server.ApplicationRegistry.Runtime Namespace