public string GetLockType()

in RunningDocumentTable(RDT)_Event_Explorer/C#/Helper/Event.cs [156:187]


        public string GetLockType()
        {
            string s = "";
            _VSRDTFLAGS mask = (_VSRDTFLAGS)dwRDTLockType;

            if ((mask & _VSRDTFLAGS.RDT_DontSave) != 0 &&
                (mask & _VSRDTFLAGS.RDT_DontSaveAs) != 0) s += "CantSave ";
            else
            {
                if ((mask & _VSRDTFLAGS.RDT_DontSave) != 0) s += "DontSave ";
                if ((mask & _VSRDTFLAGS.RDT_DontSaveAs) != 0) s += "DontSaveAs ";
            }
            if ((mask & _VSRDTFLAGS.RDT_ReadLock) != 0) s += "ReadLock ";
            if ((mask & _VSRDTFLAGS.RDT_EditLock) != 0) s += "EditLock ";
            
            if ((mask & _VSRDTFLAGS.RDT_RequestUnlock) != 0) s += "RequestUnlock ";
            if ((mask & _VSRDTFLAGS.RDT_NonCreatable) != 0) s += "NonCreatable ";
            if ((mask & _VSRDTFLAGS.RDT_DontAutoOpen) != 0) s += "DontAutoOpen ";
            if ((mask & _VSRDTFLAGS.RDT_CaseSensitive) != 0) s += "CaseSensitive ";

            if ((mask & _VSRDTFLAGS.RDT_Unlock_NoSave) != 0) s += "Unlock_NoSave ";
            if ((mask & _VSRDTFLAGS.RDT_Unlock_SaveIfDirty) != 0) s += "Unlock_SaveIfDirty ";
            if ((mask & _VSRDTFLAGS.RDT_Unlock_PromptSave) != 0) s += "Unlock_PromptSave ";

            if ((mask & _VSRDTFLAGS.RDT_VirtualDocument) != 0) s += "VirtualDocument ";
            if ((mask & _VSRDTFLAGS.RDT_ProjSlnDocument) != 0) s += "ProjSlnDocument ";
            if ((mask & _VSRDTFLAGS.RDT_PlaceHolderDoc) != 0) s += "PlaceHolderDoc ";
            if ((mask & _VSRDTFLAGS.RDT_CanBuildFromMemory) != 0) s += "CanBuildFromMemory ";
            if ((mask & _VSRDTFLAGS.RDT_DontAddToMRU) != 0) s += "DontAddToMRU ";

            return string.Format(CultureInfo.CurrentCulture, "0x{0:X} ", dwRDTLockType) + s;
        }