Implementing a BulkAssociatedIdEnumerator
Applies to: SharePoint Server 2010
In this article
Description
Syntax
Example
Description
A BulkAssociatedIdEnumerator method instance returns the identities of all external items participating in a relationship that includes the given external items.
This stereotype requires one or more external instances with the same external content type as an input. This external content type can be the source of the given association or the destination of the given association. This stereotype should return identities of the external instances that are associated with the given external items. For example, consider Customer and Order items in an external system, where the following items are related:
Customer1 is related to OrderA and OrderB.
Customer2 is related to OrderC.
Customer3 is related to OrderD and OrderE.
If Customer1 and Customer2 are given as the input, the result should contain the following pairs:
Customer1, OrderA
Customer1, OrderB
Customer2, OrderC
If OrderA and OrderE are given as the input, the result should contain the following pairs:
Customer1, OrderA
Customer3, OrderE
A BulkAssociatedIdEnumerator method should accept only one type of external content type.
Syntax
Following is a typical method signature for a BulkAssociatedIdEnumerator method:
long CheckAccess(IdType1[] id1, ...)