Microsoft.VisualStudio.Project.NestedProjectNode.UnlockRdtEntry C# (CSharp) Method

UnlockRdtEntry() private method

private UnlockRdtEntry ( ) : void
return void
        protected virtual void UnlockRdtEntry()
        {
            if (this.isDisposed || this.ProjectManager == null || this.ProjectManager.IsClosed)
            {
                return;
            }
            // First we see if someone else has opened the requested view of the file.
            IVsRunningDocumentTable rdt = this.GetService(typeof(SVsRunningDocumentTable)) as IVsRunningDocumentTable;
            if (rdt != null && this.DocCookie != (int)ShellConstants.VSDOCCOOKIE_NIL)
            {
                _VSRDTFLAGS flags = _VSRDTFLAGS.RDT_EditLock;

                ErrorHandler.ThrowOnFailure(rdt.UnlockDocument((uint)flags, (uint)this.DocCookie));
            }

            this.DocCookie = (int)ShellConstants.VSDOCCOOKIE_NIL;
        }