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)
Syntax
'Declaration
Public Sub Load(Of T As ClientObject) ( _
clientObject As T, _
ParamArray retrievals As Expression(Of Func)() _
)
'Usage
Dim instance As ClientRuntimeContext
Dim clientObject As T
Dim retrievals As Expression(Of Func)()
instance.Load(clientObject, retrievals)
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: TThe object that represents the collection of the client objects.
retrievals
Type: []The list of the properties to retrieve from the server.T
Remarks
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.