DocumentManagerCheckIn Method

Adds new version of document and commits it in document repository

Definition

Namespace: FileHold.LibraryManager
Assembly: FileHold.LibraryManager (in FileHold.LibraryManager.dll) Version: 17.1.0.0
C#
[WebMethodAttribute(Description = "Adds new version of document and commits it in document repository")]
public int CheckIn(
	Guid uploadToken,
	DocumentManagerCheckInOptions option,
	string originalFileName,
	string documentName,
	int metadataVersionId,
	bool sendEmailToMembers
)

Parameters

uploadToken  Guid
option  DocumentManagerCheckInOptions
originalFileName  String
original name of the file
documentName  String
metadataVersionId  Int32
id of document's metadata
sendEmailToMembers  Boolean

Return Value

Int32
The metadataVersionId passed as the parameter or the new metadataVersionId

Remarks

1. Check whether document was changed meanwhile 2. Add new document version in database 3. Copy metadata from previous version 4. Commit file in repository

See Also