Category.CreateCategory Method

Create a new category
Public Shared Function CreateCategory( _ 
ByVal name As String, _ 
ByVal description As String, _ 
ByVal parent_cat_id As EntityID, _ 
ByVal user_id As EntityID, _ 
ByVal db As IDatabase _ 
) As EntityID
This language is not supported or no code example is available.
public static EntityID CreateCategory( 
string name, 
string description, 
EntityID parent_cat_id, 
EntityID user_id, 
IDatabase db 
)
This language is not supported or no code example is available.
public:  
static EntityID^ CreateCategory( 
String^ name, 
String^ description, 
EntityID^ parent_cat_id, 
EntityID^ user_id, 
IDatabase^ db 
)
This language is not supported or no code example is available.
public static function CreateCategory( 
name : String, 
description : String, 
parent_cat_id : EntityID, 
user_id : EntityID, 
db : IDatabase 
) : EntityID;
This language is not supported or no code example is available.

Parameters

name
string

the categroy name

description
string

parent_cat_id
EntityID

user_id
EntityID

the id of the

db
IDatabase

the db connection

Return Value

EntityID

the created category id

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1

In this article

Definition