DocumentManagerAddDocument Method

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

Definition

Namespace: FileHold.LibraryManager
Assembly: FileHold.LibraryManager (in FileHold.LibraryManager.dll) Version: 17.1.0.0
C#
[WebMethodAttribute(Description = "Adds document to library manager and commits it in document repository. This method is obsolete; AddDocumentInfo() should be used instead.")]
[XmlIncludeAttribute(typeof(int[]))]
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  Int32
 
documentSchemaId  Int32
 
documentName  String
 
fieldsWithValues  FieldWithValue
 
uploadToken  Guid
 
originalFileName  String
 
snapshotId  Guid
 
sendEmailToMembers  Boolean
 
documentNumber  String
 
versionNumber  String
 

Return Value

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