NavigationTermSetItem.CreateTerm method (String, NavigationLinkType)
Creates a new NavigationTerm object that will be a child of this NavigationTermSetItem object.
Namespace: Microsoft.SharePoint.Publishing.Navigation
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Function CreateTerm ( _
termName As String, _
linkType As NavigationLinkType _
) As NavigationTerm
'Usage
Dim instance As NavigationTermSetItem
Dim termName As String
Dim linkType As NavigationLinkType
Dim returnValue As NavigationTerm
returnValue = instance.CreateTerm(termName, _
linkType)
public NavigationTerm CreateTerm(
string termName,
NavigationLinkType linkType
)
Parameters
termName
Type: System.StringThe initial value of the TaxonomyName property.
linkType
Type: Microsoft.SharePoint.Publishing.Navigation.NavigationLinkTypeLinkType property.
Return value
Type: Microsoft.SharePoint.Publishing.Navigation.NavigationTerm
The newly created NavigationTerm object.
Remarks
This version of the method does not specify an ID for the new NavigationTerm object.