NavigationTermSet.GetAsResolvedByWeb method

SharePoint 2013

Constructs an editable NavigationTermSet object that is bound to the specified TermSet object.

Namespace:  Microsoft.SharePoint.Publishing.Navigation
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

public static NavigationTermSet GetAsResolvedByWeb(
	TermSet termSet,
	SPWeb web,
	string siteMapProviderName
)

Parameters

termSet
Type: Microsoft.SharePoint.Taxonomy.TermSet

The TermSet object for which to instantiate a NavigationTermSet object.

web
Type: Microsoft.SharePoint.SPWeb

The SPWeb object in which the NavigationTermSet object will be used.

siteMapProviderName
Type: System.String

Return value

Type: Microsoft.SharePoint.Publishing.Navigation.NavigationTermSet
An editable NavigationTerm object

The properties are resolved hypothetically as if the termSet is being used by the specified SPWeb and siteMapProviderName.

The GetAsResolvedByWeb method is intended to support editing of TermSet objects that are not actually being used yet by an SPWeb. If SPWeb settings are already configured, a better approach is to use the GetTermSetForWeb method or the Current property to obtain an object with a verified view, and then call the GetAsEditable method if you need to make changes.

Show: