Namespace: ITHit.WebDAV.Client
The LockInfo type exposes the following members.
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Deep |
Whether lock is set on item's children.
| |
LockScope |
Scope of the lock.
| |
LockToken |
Lock token.
| |
Owner |
Owner's name.
| |
TimeOut |
Timeout until lock expires.
|
string license = "<?xml version='1.0' encoding='utf... WebDavSession session = new WebDavSession(license); session.Credentials = new NetworkCredential("User1", "pwd"); IHierarchyItem item = await session.GetFileAsync(new Uri("https://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); }