Udostępnij za pośrednictwem


DataServiceCollection<T>.Load Method (IEnumerable<T>)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Loads a collection of entity objects into the collection.

Namespace:  System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)

Syntax

'Declaration
Public Sub Load ( _
    items As IEnumerable(Of T) _
)
public void Load(
    IEnumerable<T> items
)

Parameters

Exceptions

Exception Condition
NotSupportedException

When the method is called.

Remarks

This synchronous method is not supported for use in an application for Silverlight. An exception is raised when this method is called in a Silverlight application. Instead, use the LoadAsync method.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.