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