Home Notices Documents Classes Download Others Rice
Classes  >  documentcompletedeventargs  >  EHSwitch
documentcompletedeventargs class : EHSwitch getter

Description

Gets the switch to control the handler execution.

Syntax

documentcompletedeventargsInstance.EHSwitch

Arguments

None

Return value

ClassDescription
ehswitchSwitch to control the handler execution.

Sample code

1:

open method void anyDocumentCompletedHandler(documentcompletedeventargs dcea)

2:

...

3:

ehswitch switch = dcea.EHSwitch;

4:

switch.Stop(); // Stops handling.

5:

...

6:

endmethod

Notes

You can use the EHSwitch to control the handler execution.

The documentcompletedeventargs will only appear as an argument of the document completed event handler.

Links for reference

None

Copyright © Rice All rights reserved.