共用方式為


ClientRuntimeContext.Load<T> Method

Retrieves the properties of a client object from the server.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight.Runtime (in Microsoft.SharePoint.Client.Silverlight.Runtime.dll);  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(Of T, Object))() _
)
'Usage
Dim instance As ClientRuntimeContext
Dim clientObject As T
Dim retrievals As Expression(Of Func(Of T, Object))()

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

Type Parameters

  • T
    The type of the client object.

Parameters

  • clientObject
    Type: T

    The object whose properties will be retrieved from the server.

  • retrievals
    Type: []

    The list of retrieval actions by lambda expression.

Remarks

This method is called to retrieve the properties of a specified client object, such as the ListCollection collection. The properties are stored in the client object.

See Also

Reference

ClientRuntimeContext Class

ClientRuntimeContext Members

Microsoft.SharePoint.Client Namespace