[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

How do you check if delegates are added to an event?

Niklas

7/15/2004 2:27:00 PM

Hi
In C# I checked if any delegates were added to the Event before I raised the event, like:
if (ExecutionStartedEvent != null)
ExecutionStartedEvent(applicationName);
When I did the same i VB it didn't work:
If (Not SendServerInformationEvent Is Nothing) Then
How do you do in VB? In the examples I have seen so far only do RaiseEvent.
regards
/Niklas
1 Answer

Sunny

7/15/2004 3:55:00 PM

0

Most probably the right newsgroup is languages.vb

In article <A05DCD9E-02A3-40B5-8562-C1AB719F4C30@microsoft.com>,
Niklas@discussions.microsoft.com says...
> Hi
> In C# I checked if any delegates were added to the Event before I raised the event, like:
> if (ExecutionStartedEvent != null)
> ExecutionStartedEvent(applicationName);
> When I did the same i VB it didn''t work:
> If (Not SendServerInformationEvent Is Nothing) Then
> How do you do in VB? In the examples I have seen so far only do RaiseEvent.
> regards
> /Niklas
>