IResource.IsCheckedOut Method 

IT Hit WebDAV for .NET

Determines whether item is in checked-in or checked-out state.

[Visual Basic]
Function IsCheckedOut() As Boolean
[C#]
bool IsCheckedOut();

Exceptions

Exception Type Condition
NotUnderVersionControlException This resource is not version controlled.

Example

The following example demonstrates how to find out if item is in checked-out state.

                
string license = "<?xml version='1.0' encoding='utf...
WebDavSession session = new WebDavSession(license);
session.Credentials = new NetworkCredential("User1", "pwd");

IResource resource = session.OpenResource(new Uri("http://server/directory/resource.docx"));
if (resource.IsCheckedOut())
    MessageBox.Show("The item is checked-out.");
else
    MessageBox.Show("The item is checked-in.");
                
            

See Also

IResource Interface | ITHit.WebDAV.Client Namespace