SPList.DataSource property

Gets the data source for a list that has an external data source.

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

Syntax

'Declaration
Public Property DataSource As SPListDataSource
    Get
    Friend Set
'Usage
Dim instance As SPList
Dim value As SPListDataSource

value = instance.DataSource
public SPListDataSource DataSource { get; internal set; }

Property value

Type: Microsoft.SharePoint.SPListDataSource
An object that represents the external data source or a null reference (Nothing in Visual Basic) if the list has no external data source.

See also

Reference

SPList class

SPList members

Microsoft.SharePoint namespace

HasExternalDataSource