Add a file to the database This overload does not attach inherited attributes (i.e. system file attributes, project file attributes, folder file attributes). See the overload for that option.

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

Public Shared Function PerformAddFile( _ 
ByVal file_name As String, _ 
ByVal folder_id As EntityID, _ 
ByVal user_id As EntityID, _ 
ByVal file_to_add As String, _ 
ByVal change_data As FileChangeData, _ 
ByVal add_time As Date, _ 
ByVal db As IDatabase
) As FileInfo
This language is not supported or no code example is available.
public static FileInfo PerformAddFile( 
string file_name
EntityID folder_id
EntityID user_id
string file_to_add
FileChangeData change_data
DateTime add_time
IDatabase db 
)
This language is not supported or no code example is available.
public:  
static FileInfo^ PerformAddFile( 
String^ file_name
EntityID^ folder_id
EntityID^ user_id
String^ file_to_add
FileChangeData^ change_data
DateTime add_time
IDatabase^ db 
)
This language is not supported or no code example is available.
public static function PerformAddFile( 
file_name : String
folder_id : EntityID
user_id : EntityID
file_to_add : String
change_data : FileChangeData
add_time : DateTime
db : IDatabase 
) : FileInfo;
This language is not supported or no code example is available.

Parameters

file_name
Type: string

the name of the file to add

folder_id
Type: EntityID

the id the folder

user_id
Type: EntityID

the user id to add the filr for

file_to_add
Type: string

the path to the actual file

change_data
Type: FileChangeData

the data about the change

add_time
Type: DateTime

db
Type: IDatabase

the db connection

Return Value

Type: FileInfo

.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