int IVsDeployableProjectCfg.UnadviseDeployStatusCallback(uint dwCookie) { lock (syncObject) { deployCallbackCollection.RemoveAt(dwCookie); } return(VSConstants.S_OK); }
public virtual int UnadviseBuildStatusCallback(uint cookie) { CCITracing.TraceCall(); callbacks.RemoveAt(cookie); return(VSConstants.S_OK); }
/// <include file='doc\ProjectConfig.uex' path='docs/doc[@for="BuildableProjectConfig.UnadviseBuildStatusCallback"]/*' /> public virtual int UnadviseBuildStatusCallback(uint cookie) { CCITracing.TraceCall(); callbacks.RemoveAt(cookie); return(NativeMethods.S_OK); }
public int DeleteItem(uint dwDelItemOp, uint itemid) { var item = GetItem(itemid); if (item != null) { switch ((__VSDELETEITEMOPERATION)dwDelItemOp) { case __VSDELETEITEMOPERATION.DELITEMOP_DeleteFromStorage: File.Delete(item.Filename); goto case __VSDELETEITEMOPERATION.DELITEMOP_RemoveFromProject; case __VSDELETEITEMOPERATION.DELITEMOP_RemoveFromProject: item.Removed(); _sessions.Remove(item); _sessionsCollection.RemoveAt(itemid); OnItemDeleted(itemid); // our itemids have all changed, invalidate them OnInvalidateItems(VSConstants.VSITEMID_ROOT); break; } if (itemid == _activeSession) { if (_sessions.Count > 0) { SetActiveSession(_sessions[0]); } else { _activeSession = VSConstants.VSITEMID_NIL; } } return(VSConstants.S_OK); } return(VSConstants.E_FAIL); }
public override int UnadviseBuildStatusCallback(uint cookie) { _callbacks.RemoveAt(cookie); return(VSConstants.S_OK); }
/// <summary> /// Terminates an advisory connection previously established between a connection point object and a client's sink. /// (http://msdn.microsoft.com/en-us/library/ms686608.aspx) /// </summary> /// <param name="dwCookie"> A connection token previously returned from IConnectionPoint::Advise. </param> public void Unadvise(int dwCookie) { m_eventSinks.RemoveAt((uint)dwCookie); }
public int UnadviseBuildStatusCallback(uint dwCookie) { m_callbacks.RemoveAt(dwCookie); return(VSConstants.S_OK); }
/// <include file='doc\EditorView.uex' path='docs/doc[@for="OleEditorView.Unadvise"]/*' /> public virtual void Unadvise(uint dwCookie) { eventSinks.RemoveAt(dwCookie); }
public int UnadviseHierarchyEvents(uint dwCookie) { _eventSinks.RemoveAt(dwCookie); return(0); }
/// <summary> /// Override event hierarchy notifications. /// </summary> internal void UnadviseHierarchyEvents(uint cookie) { eventSinkCollection.RemoveAt(cookie - 1); }
void IConnectionPoint.Unadvise(uint dwCookie) { eventSinks.RemoveAt(dwCookie); }