Determining Read Only Lock

B

Brian

Hello!

I have an InfoPath form in a SharePoint form library. When more than one
user opens the same form, the last user to open the form gets the form set to
read-only as per the short term lock that is issued on the file.

This is great because we want to prevent the multiple user edit.

What I need is a way to determine that this is form is read-only because of
the above situation. Is there a way to do determine this via the object
model? If not I will simply write a web service that looks at the file in
SharePoint and tells me if there is a lock on it. But, before I do this, I
want to make sure I did not miss anything in the object model.

TIA!
Brian
 
B

Brian Teutsch [MSFT]

I think you're looking for the XDocument.IsReadOnly property.

Brian
 
B

Brian

Brian,

Sorry for the delay in thanking you but thanks. Bad documentation reading on
my part.

Brian
 
Top