IResource.IsVersionControlled Method 

IT Hit WebDAV for .NET

Determines whether item is under version control.

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

Remarks

Returns true if item is under version control. Otherwise returns false.

Example

The following example demonstrates how to find out if item is being version-controlled.

                
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.IsVersionControlled())
    MessageBox.Show("The item is being version controlled.");
else
    MessageBox.Show("The item is not under version control.");
                
            

See Also

IResource Interface | ITHit.WebDAV.Client Namespace