Export (0) Print
Expand All

MetadataNavigationSettings.GetMetadataNavigationSettings Method (SPWeb, Guid)

Gets the MetadataNavigationSettings object for a specified source list.

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

public static MetadataNavigationSettings GetMetadataNavigationSettings(
	SPWeb web,
	Guid sourceListId
)

Parameters

web
Type: Microsoft.SharePoint.SPWeb

The SPWeb object that contains the source list for the settings.

sourceListId
Type: System.Guid

The Id of the source list for the settings.

Return Value

Type: Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationSettings
New instance populated with the data configured for the specified sourceListId if a matching list for the specified Id exists; otherwise, a null reference (Nothing in Visual Basic)

ExceptionCondition
ArgumentNullException

Specified SPWeb object is set to a null reference (Nothing in Visual Basic)

NullReferenceException

The MetadataNavigationSettings object is called outside of an ASP.Net page request and [MetadataNavigationContext.Current] is set to a null reference (Nothing in Visual Basic).

Uses cached values if possible.

Show:
© 2014 Microsoft