Unregister a PI tag for eventing

Discussion created by sandeep.narang on Jul 4, 2011
Latest reply on Jul 5, 2011 by MichaelvdV@Atos

Hi All


I have used eventpipes to handle value changed events. My issue is that , on click of a button, I want to stop the value change events. I have tried to detach the OnNewValueChange() event like this :

myEvents.OnNewValue -= myValHandler as PISDK._DEventPipeEvents_OnNewValueEventHandler;

But id did not work.


Can you please suggest me the workaround for this?