Share via


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

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.

See also

Reference

NavigationTermSetItem class

NavigationTermSetItem members

CreateTerm overload

Microsoft.SharePoint.Publishing.Navigation namespace

CreateTerm(String, NavigationLinkType, Guid)