Share via


MetadataNavigationContext.ListViewDataSource property

Gets the SPDataSource object for the active XsltListViewWebPart.

Namespace:  Microsoft.Office.DocumentManagement.MetadataNavigation
Assembly:  Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)

Syntax

'Declaration
Public Property ListViewDataSource As SPDataSource
    Get
    Set
'Usage
Dim instance As MetadataNavigationContext
Dim value As SPDataSource

value = instance.ListViewDataSource

instance.ListViewDataSource = value
public SPDataSource ListViewDataSource { get; set; }

Property value

Type: Microsoft.SharePoint.WebControls.SPDataSource
The active [SPDataSource] for this instance on the current page.

Remarks

This is retrieved getting the XsltListViewWebPart property and retrieving its data source during data binding. This should not be set explicitly.

See also

Reference

MetadataNavigationContext class

MetadataNavigationContext members

Microsoft.Office.DocumentManagement.MetadataNavigation namespace