共用方式為


BdcDataSource.ParentEntityInstances Property

Gets a collection that contains the parent entities in an association list.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Property ParentEntityInstances As ICollection(Of IEntityInstance)
    Get
'Usage
Dim instance As BdcDataSource
Dim value As ICollection(Of IEntityInstance)

value = instance.ParentEntityInstances
public ICollection<IEntityInstance> ParentEntityInstances { get; }

Property Value

Type: System.Collections.Generic.ICollection<IEntityInstance>
A ICollection<T> object.

Remarks

If the Mode property is set to Item, the value of this collection is returned if there is only one item in the collection; otherwise, the query uses the value of the ItemIDs property and returns the item that corresponds to that ID in the data source.

This property is ignored if the Mode property is set to List.

See Also

Reference

BdcDataSource Class

BdcDataSource Members

Microsoft.SharePoint.WebControls Namespace