LockInfo Class

IT Hit WebDAV for .NET

Information about lock set on an item.

For a list of all members of this type, see LockInfo Members.

System.Object
   ITHit.WebDAV.Client.LockInfo

[Visual Basic]
NotInheritable Public Class LockInfo
[C#]
public sealed class LockInfo

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

string license = "<?xml version='1.0' encoding='utf...
WebDavSession session = new WebDavSession(license);
session.Credentials = new NetworkCredential("User1", "pwd");
IHierarchyItem item = session.OpenResource(new Uri("http://server:8580/Products/Sales.txt"));
foreach(LockInfo lockInfo in item.ActiveLocks)
{
    string timout = lockInfo.TimeOut == TimeSpan.MaxValue ? "Infinite" : lockInfo.TimeOut.TotalSeconds.ToString();
    Console.WriteLine(lockInfo.Owner 
        + " " + lockInfo.LockToken.Href 
        + " " + lockInfo.LockToken.LockToken 
        + " " + lockInfo.LockScope 
        + " " + lockInfo.Deep
        + " " + timout);
}

Requirements

Namespace: ITHit.WebDAV.Client

Assembly: ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll)

See Also

LockInfo Members | ITHit.WebDAV.Client Namespace