Create a forum category

Namespace: SynergyServerScripting.Entities
Assembly: SynergyServerScripting (in SynergyServerScripting.dll)

Public Shared Function CreateCategory( _ 
ByVal server_id As ServerID, _ 
ByVal name As String, _ 
ByVal description As String, _ 
ByVal forum_id As EntityID, _ 
ByVal user_id As EntityID, _ 
ByVal order As Integer, _ 
ByVal db As IDatabase
) As EntityID
This language is not supported or no code example is available.
public static EntityID CreateCategory( 
ServerID server_id
string name
string description
EntityID forum_id
EntityID user_id
int order
IDatabase db 
)
This language is not supported or no code example is available.
public:  
static EntityID^ CreateCategory( 
ServerID^ server_id
String^ name
String^ description
EntityID^ forum_id
EntityID^ user_id
int order
IDatabase^ db 
)
This language is not supported or no code example is available.
public static function CreateCategory( 
server_id : ServerID
name : String
description : String
forum_id : EntityID
user_id : EntityID
order : int
db : IDatabase 
) : EntityID;
This language is not supported or no code example is available.

Parameters

server_id
Type: ServerID

the id of the server

name
Type: string

the name of the category to create

description
Type: string

a description

forum_id
Type: EntityID

the id of the forum

user_id
Type: EntityID

the id of the user

order
Type: int

the order of the category within the forum -1 will put it at the end

db
Type: IDatabase

the database to use

Return Value

Type: EntityID

the id of the category

.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