Share via


lockdiscovery Field

Topic Last Modified: 2006-06-13

The lockdiscovery field contains the list of active locks on a resource. This field is read-only.

Full Name

DAV:lockdiscovery

Content Class

Named Constant

CdoNSDAV.cdoLockdiscovery

Variant Subtype

 String

 BSTR

OLE DB Type

DBTYPE_WSTR

Remarks

Contains a listing of who has a lock, the type of lock, the timeout type and time remaining on the lock, and the associated lock token. The server is free to withhold any or all of this information if the requesting principal does not have sufficient access rights to the requested data. You cannot search for this property because it is a calculated value.

Example

The following is an example of a response of a WebDAV PROPFIND Method being used to retrieve the lockdiscovery field:

Response
HTTP/1.1 207 Mulit-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

<?xml version="1.0" encoding="utf-8" ?>
   <D:multistatus xmlns:D='DAV:'>
     <D:response>
          <D:href>http://www.domain.example.com/public/</D:href>
          <D:propstat>
               <D:prop>
                    <D:lockdiscovery>
                        <D:activelock>
                                <D:locktype><D:write/></D:locktype>
                                <D:lockscope><D:exclusive/></D:lockscope>
                                <D:depth>0</D:depth>
                                <D:owner>James Smith</D:owner>
                                <D:timeout>Infinite</D:timeout>
                                <D:locktoken>
                                        <D:href>opaquelocktoken:f81de2ad-7f3d-a1b3-4f3c-00a0c91a9d76</D:href>
                                </D:locktoken>
                        </D:activelock>
                </D:lockdiscovery>
               </D:prop>
               <D:status>HTTP/1.1 200 OK</D:status>
          </D:propstat>
     </D:response>
   </D:multistatus>