You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.Task Namespace > Classes > TaskCategoryType Class > TaskCategoryType Methods > AddTaskType
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
TaskCategoryType.AddTaskType Method

Adds a new task type to a category by providing the new task type's title and description, the category's ID and whether to make the type active. Once the new task type has been added, an new ID is returned.

C#
public Long AddTaskType(String title, String description, Long categoryId, Boolean active);
Visual Basic
Public Function AddTaskType(ByVal title As String, ByVal description As String, ByVal categoryId As Long, ByVal active As Boolean) As Long
Parameters 
Description 
title 
A title for the new task type. 
description 
A description for the new task type. 
categoryId 
The ID of the category with which the new task type will be associated. 
active 
Set to True to make the new task type active. Otherwise, set to false. 

Returns the task type's numeric ID.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!