Database.ConnectionOpened Event

Occurs when a new database connection is opened by a Database instance.

Namespace:  WebMatrix.Data
Assembly:  WebMatrix.Data (in WebMatrix.Data.dll)

Syntax

'Declaration
Public Shared Event ConnectionOpened As EventHandler(Of ConnectionEventArgs)
'Usage
Dim handler As EventHandler(Of ConnectionEventArgs)

AddHandler Database.ConnectionOpened, handler
public static event EventHandler<ConnectionEventArgs> ConnectionOpened
public:
static   event EventHandler<ConnectionEventArgs^>^ ConnectionOpened {
    void add (EventHandler<ConnectionEventArgs^>^ value);
    void remove (EventHandler<ConnectionEventArgs^>^ value);
}
member ConnectionOpened : IEvent<EventHandler<ConnectionEventArgs>,
    ConnectionEventArgs>
JScript supports the use of events, but not the declaration of new ones.

See Also

Reference

Database Class

WebMatrix.Data Namespace