Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

BeginEventHandler Delegate

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

[Visual Basic]
<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
);

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

Parameters [Visual Basic, C#, C++]

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.

Requirements

Namespace: System.Web

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web (in System.Web.dll)

See Also

System.Web Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.