Partager via


EntityInstanceCollection, classe (Microsoft.Office.Server.ApplicationRegistry.Runtime)

Represents a collection of IEntityInstance objects.

Espace de noms : Microsoft.Office.Server.ApplicationRegistry.Runtime
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)

Syntaxe

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

Remarques

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.

Notes

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

Hiérarchie d'héritage

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

Sécurité des threads

Les membres statiques publics de ce type (Shared en Visual Basic) sont sécurisés au niveau des threads. Il n'est pas garanti que les membres d'instance soient sécurisés au niveau des threads.

Voir aussi

Référence

Membres EntityInstanceCollection
Microsoft.Office.Server.ApplicationRegistry.Runtime, espace de noms