Condividi tramite


__HANDSOFFMODE Enumeration

Flags for HandsOn/Off functions of the IVsTrackProjectDocuments3 interface.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

Public Enumeration __HANDSOFFMODE

Dim instance As __HANDSOFFMODE
public enum __HANDSOFFMODE
public enum class __HANDSOFFMODE
public enum __HANDSOFFMODE

Members

Member name Description
HANDSOFFMODE_ReadAccess Caller must have read-only access (shared read locks are OK to keep open).
HANDSOFFMODE_WriteAccess Caller must have write-only access (shared write locks are OK to keep open).
HANDSOFFMODE_DeleteAccess Caller must have access to delete or rename.
HANDSOFFMODE_AsyncOperation Caller must have access to the file for an extended period of time. Caller guarantees to call HandsOnFiles 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_FullAccess Caller must have power to rename or delete the file.
HANDSOFFMODE_ReadWriteAccess Caller must have both read and write.

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;

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace