Partager via


DataServiceCollection<T>.Load Method (T)

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

Loads a single entity object into the collection.

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

Syntax

'Declaration
Public Sub Load ( _
    item As T _
)
public void Load(
    T item
)

Parameters

  • item
    Type: T
    Entity object to be added.

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.