asp.net.ph

BeginEventHandler Delegate

System.Web Namespace


Represents the method that handles asynchronous events such as application events. This delegate is called at the start of an asynchronous operation.

[ VB ]
<Serializable>
public Delegate Function Sub BeginEventHandler ( _
   ByVal sender As Object, _
   ByVal e As EventArgs, _
   ByVal cb As AsyncCallback, _
   ByVal extraData As Object _
) As IAsyncResult

[ C# ]
[ Serializable ]
public delegate IAsyncResult BeginEventHandler (
   object sender,
   EventArgs e,
   AsyncCallback cb,
   object extraData
);

[ C++ ]
[ Serializable ]
public __gc __delegate IAsyncResult* BeginEventHandler (
   Object* sender,
   EventArgs* e,
   AsyncCallback* cb,
   Object* extraData
);

In [ JScript ], you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters

The declaration of your event handler must have the same parameters as the BeginEventHandler delegate declaration.

sender
The source of the event.
e
An EventArgs that contains the event data.
cb
The delegate to call when the asynchronous method call is complete. If cb is a null reference ( Nothing in Visual Basic ) , the delegate is not called.
extraData
Any additional data needed to process the request.

Return Value

The IAsyncResult that represents the result of the BeginEventHandler operation.

See Also

EndEventHandler Delegate Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph