NavigationTermSet.GetAsResolvedByWeb method
Constructs an editable NavigationTermSet object that is bound to the specified TermSet object.
Namespace: Microsoft.SharePoint.Client.Publishing.Navigation
Assembly: Microsoft.SharePoint.Client.Publishing (in Microsoft.SharePoint.Client.Publishing.dll)
Syntax
'Declaration
Public Shared Function GetAsResolvedByWeb ( _
context As ClientRuntimeContext, _
termSet As TermSet, _
web As Web, _
siteMapProviderName As String _
) As NavigationTermSet
'Usage
Dim context As ClientRuntimeContext
Dim termSet As TermSet
Dim web As Web
Dim siteMapProviderName As String
Dim returnValue As NavigationTermSet
returnValue = NavigationTermSet.GetAsResolvedByWeb(context, _
termSet, web, siteMapProviderName)
public static NavigationTermSet GetAsResolvedByWeb(
ClientRuntimeContext context,
TermSet termSet,
Web web,
string siteMapProviderName
)
Parameters
- context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
termSet
Type: Microsoft.SharePoint.Client.Taxonomy.TermSetThe TermSet object for which to instantiate a NavigationTermSet object.
web
Type: Microsoft.SharePoint.Client.WebThe Web object in which the NavigationTermSet object will be used.
siteMapProviderName
Type: System.StringThe name of the site map provider to be used for the new NavigationTermSet object.
Return value
Type: Microsoft.SharePoint.Client.Publishing.Navigation.NavigationTermSet
An editable NavigationTerm object
Remarks
The properties are resolved hypothetically as if the termSet is being used by the specified Web and siteMapProviderName.
The GetAsResolvedByWeb method is intended to support editing of TermSet objects that are not actually being used yet by a Web. If Web 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.