AbstractEntityInstance.GetAssociatedInstances 方法 (Association, FilterCollection) (Microsoft.Office.Server.ApplicationRegistry.Runtime)
When overridden in a derived class, gets a filtered set of 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, _
filters As FilterCollection _
) As IEntityInstanceEnumerator
用法
Dim instance As AbstractEntityInstance
Dim association As Association
Dim filters As FilterCollection
Dim returnValue As IEntityInstanceEnumerator
returnValue = instance.GetAssociatedInstances(association, filters)
public virtual IEntityInstanceEnumerator GetAssociatedInstances (
Association association,
FilterCollection filters
)
参数
- association
A valid Association object for this entity.
- filters
A valid FilterDescriptionCollection object with the filters to apply to the result set of the association method.
返回值
An IEntityInstanceEnumerator containing the filtered 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, and this can be optionally filtered.
另请参阅
参考
AbstractEntityInstance 类
AbstractEntityInstance 成员
Microsoft.Office.Server.ApplicationRegistry.Runtime 命名空间