NavigationTerm.GetAsResolvedByWeb method
Constructs an editable NavigationTerm object that is bound to a specified Term object.
Namespace: Microsoft.SharePoint.Publishing.Navigation
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Shared Function GetAsResolvedByWeb ( _
term As Term, _
web As SPWeb, _
siteMapProviderName As String _
) As NavigationTerm
'Usage
Dim term As Term
Dim web As SPWeb
Dim siteMapProviderName As String
Dim returnValue As NavigationTerm
returnValue = NavigationTerm.GetAsResolvedByWeb(term, _
web, siteMapProviderName)
public static NavigationTerm GetAsResolvedByWeb(
Term term,
SPWeb web,
string siteMapProviderName
)
Parameters
term
Type: Microsoft.SharePoint.Taxonomy.TermThe Term for which to instantiate a NavigationTerm object.
- web
Type: Microsoft.SharePoint.SPWeb
- siteMapProviderName
Type: System.String
Return value
Type: Microsoft.SharePoint.Publishing.Navigation.NavigationTerm
An editable NavigationTerm object
Remarks
The NavigationTerm properties are resolved as if the TermSet object is being used by the specified SPWeb object and the siteMapProviderName parameter.
The GetAsResolvedByWeb(Term, SPWeb, String) method is intended to support the editing of TermSet objects that are not actually being used yet by an SPWeb object. If the SPWeb object’s settings are already configured, 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.