OpenDocuments.CheckoutDocumentPrompt Method

Applies to: SharePoint Foundation 2010

Checks out a document from a library.

expression.CheckoutDocumentPrompt(bstrDocumentLocationRaw As String, fEditAfterCheckout As Boolean, varProgID)



An expression that returns an OpenDocuments Control object.


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


true to open the document in an editing application; otherwise, false.


An optional string that contains the ProgID of the application that is used to work with the document. If this argument is omitted, the default application for the document is used.

Return Value

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