Updates the type of the content.

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

Syntax

C#
public void UpdateContentType(
	ContentType contentType
)
Visual Basic
Public Sub UpdateContentType ( 
	contentType As ContentType
)

Parameters

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

Implements

IContentTypeController..::..UpdateContentType(ContentType)

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptioncontent type is null.
System..::..ArgumentOutOfRangeExceptioncontent type id is less than 0.
System..::..ArgumentExceptioncontentType.ContentType is empty.

See Also