[This is preliminary documentation and is subject to change.]

This function copies file from one folder to another.

Namespace:  OfficeClip.DBLayer.Desktop
Assembly:  OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0

Syntax

C#
public int Copy(
	int userId,
	int groupId,
	int srcDocumentId,
	int destFolderId,
	int srcFolderId,
	string srcName,
	bool isVersion
)
Visual Basic (Declaration)
Public Function Copy ( _
	userId As Integer, _
	groupId As Integer, _
	srcDocumentId As Integer, _
	destFolderId As Integer, _
	srcFolderId As Integer, _
	srcName As String, _
	isVersion As Boolean _
) As Integer
Visual C++
public:
int Copy(
	int userId, 
	int groupId, 
	int srcDocumentId, 
	int destFolderId, 
	int srcFolderId, 
	String^ srcName, 
	bool isVersion
)

Parameters

userId
Type: System..::.Int32
The unique id of the user whose document has to be moved or copied.
groupId
Type: System..::.Int32
The unique id of the group whose document has to be moved or copied.
srcDocumentId
Type: System..::.Int32
The document-id of the source.
destFolderId
Type: System..::.Int32
The folder-id of the destination.
srcFolderId
Type: System..::.Int32
The id of the source folder
srcName
Type: System..::.String
The name of the source folder.
isVersion
Type: System..::.Boolean
Flag (True/False) indicating if a new version is created.

Return Value

The document id of the destination document if successful -1 otherwise.

See Also