XsltListViewWebPart.DataSourceMode property

Gets or sets a value that specifies the type of data to query.

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

Syntax

'Declaration
<WebBrowsableAttribute(False)> _
<PersonalizableAttribute(PersonalizationScope.Shared)> _
Public Property DataSourceMode As SPDataSourceMode
    Get
    Set
'Usage
Dim instance As XsltListViewWebPart
Dim value As SPDataSourceMode

value = instance.DataSourceMode

instance.DataSourceMode = value
[WebBrowsableAttribute(false)]
[PersonalizableAttribute(PersonalizationScope.Shared)]
public SPDataSourceMode DataSourceMode { get; set; }

Property value

Type: Microsoft.SharePoint.WebControls.SPDataSourceMode
A value that specifies the type of data to query. The default value is SPDataSourceMode.List

See also

Reference

XsltListViewWebPart class

XsltListViewWebPart members

Microsoft.SharePoint.WebPartPages namespace