Compartir a través de


: EntityInstanceCollection (Clase) (Microsoft.Office.Server.ApplicationRegistry.Runtime)

Represents a collection of IEntityInstance objects.

Espacio de nombres:
Ensamblado: Microsoft.SharePoint.Portal (in microsoft.sharepoint.portal.dll)

Sintaxis

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

Comentarios

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.

Nota

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

Jerarquía de herencia

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

Seguridad de subprocesos

Todos los miembros estáticos públicos (compartidos en Visual Basic) de este tipo son seguros para la ejecución de subprocesos. No se garantiza que los miembros de instancia sean seguros para los subprocesos.

Vea también

Referencia

EntityInstanceCollection (Miembros)
Microsoft.Office.Server.ApplicationRegistry.Runtime (Espacio de nombres)