Differences
This shows you the differences between the selected revisions of the page.
2017-03-05 | 2017-06-02 | ||
simple instructions for installing (martin) | .remove_Event (martin) | ||
Line 72: | Line 72: | ||
* Define event handling function; | * Define event handling function; | ||
* Associate the event handling function with an instance of ''Session'' class using ''.add_Event'' method, where ''Event'' is a name of the event.((Avoid using ''[[ps>microsoft.powershell.utility/register-objectevent|Register-ObjectEvent]]'' cmdlet, as it introduces threading problems and possible crashes.)) | * Associate the event handling function with an instance of ''Session'' class using ''.add_Event'' method, where ''Event'' is a name of the event.((Avoid using ''[[ps>microsoft.powershell.utility/register-objectevent|Register-ObjectEvent]]'' cmdlet, as it introduces threading problems and possible crashes.)) | ||
+ | * If you need to disassociate the event handling function later, use ''.remove_Event'' method. | ||
See following code snippet: | See following code snippet: |