EntityInstanceCollection 类 (Microsoft.Office.Server.ApplicationRegistry.Runtime)

Represents a collection of IEntityInstance objects.

命名空间: Microsoft.Office.Server.ApplicationRegistry.Runtime
程序集: Microsoft.SharePoint.Portal (在 microsoft.sharepoint.portal.dll 中)

语法

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

备注

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.

备注

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

继承层次结构

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

线程安全性

此类型的任何公共静态( Visual Basic 中共享)成员是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

参考

EntityInstanceCollection 成员
Microsoft.Office.Server.ApplicationRegistry.Runtime 命名空间