ClientRuntimeContext.Load<T> method (T, Expression<Func>[])

Retrieves the properties of the object from server to client.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client.Runtime (in Microsoft.SharePoint.Client.Runtime.dll)

public void Load<T>(
	T clientObject,
	params Expression<Func>[] retrievals
)
where T : ClientObject

Type parameters

T

The type of the child client object.

Parameters

clientObject
Type: T

The object that represents the collection of the client objects.

retrievals
Type: []

The list of the properties to retrieve from the server.T

If the clientObject has child objects, the child objects with all of the default scalar properties is retrieved. Otherwise, only the default scalar properties of the client object is retrieved. The data will be stored in the clientObject itself.

Show: