OpenDocuments.CheckinDocument Method

Last modified: July 09, 2008

Applies to: SharePoint Foundation 2010

Checks in the specified document to a library.

expression.CheckinDocument(bstrDocumentLocation As String, CheckinType As Long, CheckinComment As String, bKeepCheckout As Boolean)


An expression that returns an OpenDocuments Control object.


A string that contains the URL of the document to check in.


A Long that specifies the type of check-in, where 0 = minor check-in, 1 = major check-in, and 2 = overwrite check-in.


A string that contains a comment for checking in the document.


Optional. true to check in changes that have been made to the document yet keep the document checked out; otherwise, false. The default value is false.

true if the document is successfully checked in; otherwise, false.