Compartilhar via


__HANDSOFFMODE Enum

Definition

Flags for HandsOn/Off functions of the IVsTrackProjectDocuments3 interface.

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

Fields

Name Value Description
HANDSOFFMODE_AsyncOperation -2147483648

Caller must have access to the file for an extended period of time. Caller guarantees to call HandsOnFiles(Int32, String[]) to tell parties when they can access the file. Incompatible AsyncOperations do not nest. HandsOffFiles returns E_ACCESSDENIED if there is a pending incompatible AsyncOperation. There can be multiple nested Async ReadAccess operations but WriteAccess and DeleteAccess operations cannot be nested.

HANDSOFFMODE_ReadAccess 1

Caller must have read-only access (shared read locks are OK to keep open).

HANDSOFFMODE_WriteAccess 2

Caller must have write-only access (shared write locks are OK to keep open).

HANDSOFFMODE_ReadWriteAccess 3

Caller must have both read and write.

HANDSOFFMODE_DeleteAccess 4

Caller must have access to delete or rename.

HANDSOFFMODE_FullAccess 7

Caller must have power to rename or delete the file.

Remarks

COM Signature

From IVsTrackProjectDocumentsEvents80.idl:

enum __HANDSOFFMODE  
{  
    HANDSOFFMODE_ReadAccess         = 0x00000001,  
    HANDSOFFMODE_WriteAccess        = 0x00000002,  
    HANDSOFFMODE_DeleteAccess       = 0x00000004,  
    HANDSOFFMODE_AsyncOperation     = 0x80000000,  
    HANDSOFFMODE_FullAccess         = HANDSOFFMODE_DeleteAccess | HANDSOFFMODE_ReadAccess | HANDSOFFMODE_WriteAccess,  
    HANDSOFFMODE_ReadWriteAccess    = HANDSOFFMODE_ReadAccess | HANDSOFFMODE_WriteAccess    // caller needs both read & write  
};  
typedef DWORD HANDSOFFMODE;  

Applies to