EntityContainer.LoadEntities Method (IEnumerable, LoadBehavior)
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Loads the specified collection of entities into this EntityContainer using the specified load behavior.
Namespace: System.ServiceModel.DomainServices.Client
Assembly: System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)
Syntax
'Declaration
Public Function LoadEntities ( _
entities As IEnumerable, _
loadBehavior As LoadBehavior _
) As IEnumerable
'Usage
Dim instance As EntityContainer
Dim entities As IEnumerable
Dim loadBehavior As LoadBehavior
Dim returnValue As IEnumerable
returnValue = instance.LoadEntities(entities, _
loadBehavior)
public IEnumerable LoadEntities(
IEnumerable entities,
LoadBehavior loadBehavior
)
public:
IEnumerable^ LoadEntities(
IEnumerable^ entities,
LoadBehavior loadBehavior
)
member LoadEntities :
entities:IEnumerable *
loadBehavior:LoadBehavior -> IEnumerable
public function LoadEntities(
entities : IEnumerable,
loadBehavior : LoadBehavior
) : IEnumerable
Parameters
- entities
Type: System.Collections.IEnumerable
The entities to load.
- loadBehavior
Type: System.ServiceModel.DomainServices.Client.LoadBehavior
The LoadBehavior to use.
Return Value
Type: System.Collections.IEnumerable
An IEnumerable representing the collection of entities.
Exceptions
Exception | Condition |
---|---|
[ArgumentNullException] | entities is nulla null reference (Nothing in Visual Basic). |