다음을 통해 공유


__VSREGDOCLOCKHOLDER Enum

Definition

public enum class __VSREGDOCLOCKHOLDER
public enum class __VSREGDOCLOCKHOLDER
enum __VSREGDOCLOCKHOLDER
public enum __VSREGDOCLOCKHOLDER
type __VSREGDOCLOCKHOLDER = 
Public Enum __VSREGDOCLOCKHOLDER
Inheritance
__VSREGDOCLOCKHOLDER

Fields

Name Value Description
RDLH_WeakLockHolder 1

Specifies a weak document lock holder.

Remarks

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.

Applies to