Condividi tramite


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallablePropertyAttribute(SetProperty := False, ExcludeFromDefaultRetrieve := True)> _
Public Property DataSource As SPListDataSource
    Get
    Friend Set
'Usage
Dim instance As SPList
Dim value As SPListDataSource

value = instance.DataSource
[ClientCallablePropertyAttribute(SetProperty = false, ExcludeFromDefaultRetrieve = true)]
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