-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: Jigs
Message 1 in Discussion


Hi Niyati,
 
NET, defines a delegate as a class that holds a reference to a method 
oEssentially a typesafe callback method reference (pointer) 
 
In Vb.NET you can define delegate as 
Public 
Delegate Sub MyCallbackHandler(x as integer) 

The signature of the 
delegate defines the signature of the methods it can call. For example, the 
MyCallbackHandler delegate shown above can be used to refer to void methods that 
take a single integer as a parameter:
 

Delegate Tutorial: 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkDelegatesTutorial.asp
 
and Events are declared as 
Public Event 
MyCallbackEvent As MyCallbackHandler 
 
Events can be used to inform an object that 
something significant has happened, and interrupt the flow of control in that 
object causing it to execute a method designed for handling the event. An event 
provides a component with a hook that an interested client can attach one of its 
methods to. When the component wants to indicate that something significant has 
happened, it can raise the event and consequently call the associated 
methods
 
Events are closely related to delegates, and rely 
on the functionality of multicast delegates for registering methods to be called 
when an event is raised
 
 
Events Tutorial : 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkEventsTutorial.asp
 
 
Regards,
Jignesh 
Desai
http://www.dotnetjiNi.com 

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to