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
sourceList
Type: Microsoft.SharePoint.SPListThe list to update these settings on.
listNavSettings
Type: Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationSettingsThe new settings to update on the list
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)