Adds the term.
Namespace: DotNetNuke.Entities.Content.TaxonomyAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
| C# |
|---|
public int AddTerm( Term term ) |
| Visual Basic |
|---|
Public Function AddTerm ( term As Term ) As Integer |
Parameters
- term
- Type: DotNetNuke.Entities.Content.Taxonomy..::..Term
The term.
Return Value
term id.Implements
ITermController..::..AddTerm(Term)
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | term is null. |
| System..::..ArgumentOutOfRangeException | term.VocabularyId is less than 0. |
| System..::..ArgumentException | term.Name is empty. |