3.1.4.3.5 Check Lock Availability

If the CoauthRequestType attribute is set to "CheckLockAvailability", the protocol server considers this coauthoring subrequest to be of type, "Check lock availability". The protocol server checks if a file is available to take a shared lock or exclusive lock.

If there is a current exclusive lock on the file or if there is a shared lock on the file with a different schema lock identifier, the protocol server returns an error code value set to "FileAlreadyLockedOnServer". If the coauthorable file is checked out on the server and it is checked out by a client with a different user name than the current client, the protocol server returns an error code value set to "FileAlreadyCheckedOutOnServer". In all other cases, the protocol server returns an error code value set to "Success" to indicate the availability of the file for locking.