ResponseSubmittedEventHandler Delegate
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents the method that will handle the ResponseSubmitted event of a Notification.
Namespace: Microsoft.WindowsCE.Forms
Assembly: Microsoft.WindowsCE.Forms (in Microsoft.WindowsCE.Forms.dll)
Syntax
'Declaration
Public Delegate Sub ResponseSubmittedEventHandler ( _
sender As Object, _
e As ResponseSubmittedEventArgs _
)
'Usage
Dim instance As New ResponseSubmittedEventHandler(AddressOf HandlerMethod)
public delegate void ResponseSubmittedEventHandler(
Object sender,
ResponseSubmittedEventArgs e
)
public delegate void ResponseSubmittedEventHandler(
Object^ sender,
ResponseSubmittedEventArgs^ e
)
type ResponseSubmittedEventHandler =
delegate of
sender:Object *
e:ResponseSubmittedEventArgs -> unit
Parameters
- sender
Type: System.Object
The source of the event.
- e
Type: Microsoft.WindowsCE.Forms.ResponseSubmittedEventArgs
A ResponseSubmittedEventArgs that contains the event data.
Remarks
When you create a ResponseSubmittedEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event-handler delegates, see Events and Delegates.
In Visual Basic, you do not need to create an instance of a delegate to handle an event. At design time, you can declare the event source with the WithEvents modifier and add a Handles clause to the method that handles the event. However, if you want to start and stop event handling at run time, you must create a delegate and pass it to the AddHandler statement.
Examples
The following C# code example shows how to add a delegate to the ResponseSubmitted event. When the event is raised, the delegate invokes the associated event handler, the OnResponseSubmitted method. This code example is part of a larger example provided for the Notification class.
notification1.ResponseSubmitted += new ResponseSubmittedEventHandler(OnResponseSubmitted);
Platforms
Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Compact Framework
Supported in: 3.5, 2.0
See Also
Reference
Microsoft.WindowsCE.Forms Namespace