NavigationTerm.GetAsResolvedByWeb method
Constructs an editable NavigationTerm object that is bound to a specified Term 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, _
term As Term, _
web As Web, _
siteMapProviderName As String _
) As NavigationTerm
'Usage
Dim context As ClientRuntimeContext
Dim term As Term
Dim web As Web
Dim siteMapProviderName As String
Dim returnValue As NavigationTerm
returnValue = NavigationTerm.GetAsResolvedByWeb(context, _
term, web, siteMapProviderName)
public static NavigationTerm GetAsResolvedByWeb(
ClientRuntimeContext context,
Term term,
Web web,
string siteMapProviderName
)
Parameters
- context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
term
Type: Microsoft.SharePoint.Client.Taxonomy.TermThe Term for which to instantiate a NavigationTerm object.
web
Type: Microsoft.SharePoint.Client.WebThe Web site that will be used to construct the NavigationTermSetView object.
siteMapProviderName
Type: System.StringThe name of the site map provider to be used for the new NavigationTerm object.
Return value
Type: Microsoft.SharePoint.Client.Publishing.Navigation.NavigationTerm
An editable NavigationTerm object
Remarks
The NavigationTerm properties are resolved as if the TermSet object is being used by the specified Web object and the siteMapProviderName parameter.
The GetAsResolvedByWeb(ClientRuntimeContext, Term, Web, String) method is intended to support the editing of TermSet objects that are not actually being used yet by a Web object. If the Web object’s settings are already configured, use the GetTermSetForWeb method to obtain an object with a verified view, and then call the GetAsEditable method if you need to make changes.