Adds the vocabulary.

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

Syntax

C#
public int AddVocabulary(
	Vocabulary vocabulary,
	int createdByUserId
)
Visual Basic
Public Function AddVocabulary ( 
	vocabulary As Vocabulary,
	createdByUserId As Integer
) As Integer

Parameters

vocabulary
Type: DotNetNuke.Entities.Content.Taxonomy..::..Vocabulary
The vocabulary.
createdByUserId
Type: System..::..Int32
The created by user id.

Return Value

Vocabulary id.

Implements

IDataService..::..AddVocabulary(Vocabulary, Int32)

See Also