Adds the type of the content.

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

Syntax

C#
int AddContentType(
	ContentType contentType
)
Visual Basic
Function AddContentType ( 
	contentType As ContentType
) As Integer

Parameters

contentType
Type: DotNetNuke.Entities.Content..::..ContentType
Type of the content.

Return Value

content type id.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptioncontent type is null.
System..::..ArgumentExceptioncontentType.ContentType is empty.

See Also