Share via


MetadataNavigationContext.XsltListViewWebPart property

Gets or sets the active [XsltListViewWebPart] object for this instance of the MetadataNavigationContext object on the current page.

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

Syntax

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

value = instance.XsltListViewWebPart

instance.XsltListViewWebPart = value
public XsltListViewWebPart XsltListViewWebPart { get; set; }

Property value

Type: Microsoft.SharePoint.WebPartPages.XsltListViewWebPart
The active [XsltListViewWebPart] object for this instance of the MetadataNavigationContext object on the current page.

Remarks

This is usually retrieved by finding the first web part on the page, if it is an XsltListViewWebPart object. Otherwise, this property can be set explicitly to a particular XsltListViewWebPart on the page.

See also

Reference

MetadataNavigationContext class

MetadataNavigationContext members

Microsoft.Office.DocumentManagement.MetadataNavigation namespace