Export (0) Print
Expand All
Expand Minimize

__VSREGDOCLOCKHOLDER Enumeration

Specifies a weak lock in calls to the RegisterDocumentLockHolder method.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

public enum __VSREGDOCLOCKHOLDER
public enum __VSREGDOCLOCKHOLDER
public enum __VSREGDOCLOCKHOLDER

 Member nameDescription
RDLH_WeakLockHolderSpecifies a weak document lock holder. 

COM Signature

From vsshell.idl:

enum __VSREGDOCLOCKHOLDER {
    RDLH_WeakLockHolder = 0x00000001
};
typedef DWORD VSREGDOCLOCKHOLDER;

The RDLH_WeakLockHolder flag identifies the document lock holder that is passed to the RegisterDocumentLockHolder method as a weak lock holder. A weak lock holder can obtain an EditLock (a lock on a document that can be changed) only if there are no other edit locks. A weak lock holder must first check the existing lock count, and take its EditLock, only if there are no other EditLocks. It should take its EditLock before calling the RegisterDocumentLockHolder method.

When another document holder requests an EditLock on a document and the current lock holder is a weak lock holder, the CloseDocumentHolder method on the current lock holder is called when the EditLock is given to the new document holder.

Community Additions

ADD
Show:
© 2014 Microsoft