List.DataSource property

Gets the data source associated with the list, or a null reference (Nothing in Visual Basic) if the list is not a virtual list.

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

public ListDataSource DataSource { get; }

Property value

Type: Microsoft.SharePoint.Client.ListDataSource
A ListDataSource object that represents the data source.

If HasExternalDataSource is false, the server must return a null reference (Nothing in Visual Basic).