Home Notices Documents Classes Download Others Rice
Classes  >  ehswitch  >  Handler
ehswitch class : Handler getter

Description

Gets an instance of an user defined class that have the eventhandler method.

Syntax

ehswitchInstance.Handler

Arguments

None

Return value

ClassDescription
some classAn instance of an user defined class that have the eventhandler method.

Sample code

1:

class handle

2:

...

3:

open fitter handle()

4:

// any initialization code...

5:

endfitter

6:

...

7:

open setter SomeSetter(string val)

8:

...

9:

endsetter

10:

...

11:

open method void handler(eventargs ea)

12:

...

13:

ehswitch ehs = ea.EHSwitch;

14:

handle h = ehs.Handler;

15:

h.SomeSetter = "value";

16:

...

17:

endmethod

18:

...

19:

endclass

Notes

Ver 1.0.0.0 : It has Returned an instance of the proxy class.

Ver 1.0.0.1 : The return value is modified. It does not return the proxy class, returns the handler instance itself directly.

Links for reference

None.

Copyright © Rice All rights reserved.