MetadataNavigationSettings.GetMetadataNavigationSettings Method (SPList)
Gets the MetadataNavigationSettings object for a specified source list.
Namespace: Microsoft.Office.DocumentManagement.MetadataNavigation
Assembly: Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)
Syntax
'Declaration
Public Shared Function GetMetadataNavigationSettings ( _
sourceList As SPList _
) As MetadataNavigationSettings
'Usage
Dim sourceList As SPList
Dim returnValue As MetadataNavigationSettings
returnValue = MetadataNavigationSettings.GetMetadataNavigationSettings(sourceList)
public static MetadataNavigationSettings GetMetadataNavigationSettings(
SPList sourceList
)
Parameters
sourceList
Type: Microsoft.SharePoint.SPListThe source list to get the settings from
Return Value
Type: Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationSettings
A new instance populated with the data configured for the specified sourceListId
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The specified SPList object is set to a null reference (Nothing in Visual Basic) |
See Also
Reference
MetadataNavigationSettings Class
MetadataNavigationSettings Members
GetMetadataNavigationSettings Overload
Microsoft.Office.DocumentManagement.MetadataNavigation Namespace
GetMetadataNavigationSettings(SPWeb, Guid)
GetMetadataNavigationSettings(SPWeb, Guid, Boolean)
SetMetadataNavigationSettings(SPList, MetadataNavigationSettings)
SetMetadataNavigationSettings(SPList, MetadataNavigationSettings, Boolean)
SetMetadataNavigationSettings(SPList, MetadataNavigationSettings, Boolean, Boolean)