AbstractEntityInstance.GetAssociatedInstances 方法 (Association) (Microsoft.Office.Server.ApplicationRegistry.Runtime)

When overridden in a derived class, gets the associated entity instances for this entity instance for the specified association.

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

语法

声明
Public Overridable Function GetAssociatedInstances ( _
    association As Association _
) As IEntityInstanceEnumerator
用法
Dim instance As AbstractEntityInstance
Dim association As Association
Dim returnValue As IEntityInstanceEnumerator

returnValue = instance.GetAssociatedInstances(association)
public virtual IEntityInstanceEnumerator GetAssociatedInstances (
    Association association
)

参数

  • association
    A valid Association object for this entity instance.

返回值

An IEntityInstanceEnumerator containing the related entity instances for this entity instance.

备注

All Business Data Catalog associations are 1 to many. Therefore, what comes back is always a stream of 0 or more entity instances.

另请参阅

参考

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