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

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

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

语法

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

returnValue = instance.GetAssociatedInstances(associationName)
public virtual IEntityInstanceEnumerator GetAssociatedInstances (
    string associationName
)

参数

  • associationName
    A valid Association name for this entity.

返回值

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 命名空间