File.PerformAddFile (String, EntityID, EntityID, String, FileChangeData, DateTime, IDatabase) Method

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.
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
string

the name of the file to add

folder_id
EntityID

the id the folder

user_id
EntityID

the user id to add the filr for

file_to_add
string

the path to the actual file

change_data
FileChangeData

the data about the change

add_time
DateTime

db
IDatabase

the db connection

Return Value

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

In this article

Definition