Updates the type of the content.
Namespace: DotNetNuke.Entities.ContentAssembly: 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
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | content type is null. |
| System..::..ArgumentOutOfRangeException | content type id is less than 0. |
| System..::..ArgumentException | contentType.ContentType is empty. |