Adds the term.

Namespace: DotNetNuke.Entities.Content.Taxonomy
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public int AddTerm(
	Term term
)
Visual Basic
Public Function AddTerm ( 
	term As Term
) As Integer

Return Value

term id.

Implements

ITermController..::..AddTerm(Term)

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionterm is null.
System..::..ArgumentOutOfRangeExceptionterm.VocabularyId is less than 0.
System..::..ArgumentExceptionterm.Name is empty.

See Also