Click or drag to resize

DocumentManagerAddDocument Method

Adds document to library manager and commits it in document repository. This method is obsolete; AddDocumentInfo() should be used instead.

Namespace:  FileHold.LibraryManager
Assembly:  FileHold.LibraryManager (in FileHold.LibraryManager.dll) Version: 17.0.0.0
Syntax
C#
public int AddDocument(
	int folderId,
	int documentSchemaId,
	string documentName,
	FieldWithValue[] fieldsWithValues,
	Guid uploadToken,
	string originalFileName,
	Guid snapshotId,
	bool sendEmailToMembers,
	string documentNumber,
	string versionNumber
)

Parameters

folderId
Type: SystemInt32
documentSchemaId
Type: SystemInt32
documentName
Type: SystemString
fieldsWithValues
Type: FileHold.LibraryManagerFieldWithValue
uploadToken
Type: SystemGuid
originalFileName
Type: SystemString
snapshotId
Type: SystemGuid
sendEmailToMembers
Type: SystemBoolean
documentNumber
Type: SystemString
versionNumber
Type: SystemString

Return Value

Type: Int32
Remarks
1. Check whether document schema was changed 2. Add document to library manager a) add system properties b) add properties specific for particular schema 3. commit file in document repository This method is obsolete; AddDocumentInfo() should be used instead.
See Also