Share via


MetadataNavigationSettings.SetMetadataNavigationSettings method (SPList, MetadataNavigationSettings)

Updates the MetadataNavigationSettings object for a specified SPList object without automatically updating the list indexing.

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

Syntax

'Declaration
Public Shared Sub SetMetadataNavigationSettings ( _
    sourceList As SPList, _
    listNavSettings As MetadataNavigationSettings _
)
'Usage
Dim sourceList As SPList
Dim listNavSettings As MetadataNavigationSettingsMetadataNavigationSettings.SetMetadataNavigationSettings(sourceList, _
    listNavSettings)
public static void SetMetadataNavigationSettings(
    SPList sourceList,
    MetadataNavigationSettings listNavSettings
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

One of the input parameters is set to a null reference (Nothing in Visual Basic).

See also

Reference

MetadataNavigationSettings class

MetadataNavigationSettings members

SetMetadataNavigationSettings overload

Microsoft.Office.DocumentManagement.MetadataNavigation namespace

GetMetadataNavigationSettings(SPWeb, Guid)

GetMetadataNavigationSettings(SPWeb, Guid, Boolean)

AddConfiguredHierarchy(MetadataNavigationHierarchy)

AddConfiguredKeyFilter(MetadataNavigationKeyFilter)

SetMetadataNavigationSettings(SPList, MetadataNavigationSettings, Boolean)