SqlCeInfoMessageEventHandler Delegate

Represents the method that will handle the InfoMessage event of a SqlCeConnection.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)


Public Delegate Sub SqlCeInfoMessageEventHandler ( _
    sender As Object, _
    e As SqlCeInfoMessageEventArgs _
Dim instance As New SqlCeInfoMessageEventHandler(AddressOf HandlerMethod)
public delegate void SqlCeInfoMessageEventHandler(
    Object sender,
    SqlCeInfoMessageEventArgs e
public delegate void SqlCeInfoMessageEventHandler(
    Object^ sender, 
    SqlCeInfoMessageEventArgs^ e
type SqlCeInfoMessageEventHandler = 
    delegate of 
        sender:Object * 
        e:SqlCeInfoMessageEventArgs -> unit
JScript supports the use of delegates, but not the declaration of new ones.



When you create a SqlCeInfoMessageEventArgs 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.

See Also


System.Data.SqlServerCe Namespace