Create a folder

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

Public Shared Function CreateFolder( _ 
ByVal folder_id As EntityID, _ 
ByVal folder_name As String, _ 
ByVal parent_folder As EntityID, _ 
ByVal project_id As EntityID, _ 
ByVal inherit_permissions As Boolean, _ 
ByVal inherit_file_attribs As Boolean, _ 
ByVal folder_type As FolderType, _ 
ByVal contact_id As EntityID, _ 
ByVal db As IDatabase _ 
) As EntityID
This language is not supported or no code example is available.
public static EntityID CreateFolder( 
EntityID folder_id, 
string folder_name, 
EntityID parent_folder, 
EntityID project_id, 
bool inherit_permissions, 
bool inherit_file_attribs, 
FolderType folder_type, 
EntityID contact_id, 
IDatabase db 
)
This language is not supported or no code example is available.
public:  
static EntityID^ CreateFolder( 
EntityID^ folder_id, 
String^ folder_name, 
EntityID^ parent_folder, 
EntityID^ project_id, 
bool inherit_permissions, 
bool inherit_file_attribs, 
FolderType folder_type, 
EntityID^ contact_id, 
IDatabase^ db 
)
This language is not supported or no code example is available.
public static function CreateFolder( 
folder_id : EntityID, 
folder_name : String, 
parent_folder : EntityID, 
project_id : EntityID, 
inherit_permissions : boolean, 
inherit_file_attribs : boolean, 
folder_type : FolderType, 
contact_id : EntityID, 
db : IDatabase 
) : EntityID;
This language is not supported or no code example is available.

Parameters

folder_id
Type: EntityID

folder_name
Type: string

the folder name to create

parent_folder
Type: EntityID

the parent folder to create it in - may be null if a root folder. If creating a root folder, you must call Project.SetProjectRootFolder

project_id
Type: EntityID

inherit_permissions
Type: bool

whether or not this folder inherits permissions

inherit_file_attribs
Type: bool

folder_type
Type: FolderType

the type of folder

contact_id
Type: EntityID

the id of the contact creating the folder

db
Type: IDatabase

the database connection

Return Value

Type: EntityID

the created folder 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