How do I find Require Check Out setting? RRS feed

  • Question

  • How can I programmatically determine the true/false setting of the "Require Check Out" setting of a document in a Document Library?  I see it in the "Versioning Settings" in the GUI, but can't find a method or property of any of the "usual suspect" objects that might reveal this information to me at run-time in my custom workflow.


    I'm setting a value associated with the content type associated with a document undergoing a workflow and would like to avoid haveing to SPFile.Checkout  ... (modify SPField value)  SPFile.CheckIn if it's not necessary for the document in question.

    Wednesday, August 8, 2007 5:42 PM


  • Hi,

    You might be able to use the "ForceCheckout" property of the "SPDocumentLibrary" object.  You will have to get the "SPDocumentLibrary" object from the document object.


    Thursday, August 9, 2007 9:38 AM