
If five principals request a shared lock on a resource, then five lock tokens will be generated, one for each principal. A shared lock is specified by a shared XML Element within the lockscope XML Element of the XML request body.Ī successful request for an exclusive or shared lock will result in the generation of a unique lock token associated with the requesting principal. Shared locks allow multiple principals to receive a lock on a resource and therefore may be used to limit access to a resource to a certain set of principals. An exclusive lock is specified by the exclusive XML Element within the lockscope XML Element of the XML request body. The most basic form of a write lock is an exclusive lock, where the access right to a resource is only granted to a single principal.

A write lock is specified by the write XML Element within the locktype XML Element of the XML request body. Write LocksĪ write lock will prevent a principal without the lock from executing a PROPPATCH Method, a LOCK method, an UNLOCK Method, a MOVE Method, a DELETE Method, or a MKCOL Method on a locked resource.

The LOCK method may also be used to initiate transactions, which allow clients to define groups of operations that are performed atomically. The WebDAVLOCK method is used to take out a lock of any access type on a resource so that another principal will not modify the resource while it is being edited. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

This content is no longer actively maintained.
