C1.C1DataExtender.2 Assembly > C1.C1DataExtender Namespace > C1DataViewSet Class : ConnectionOpening Event |
'Declaration Public Event ConnectionOpening As ConnectionOpeningEventHandler
public event ConnectionOpeningEventHandler ConnectionOpening
The event handler receives an argument of type ConnectionOpeningEventArgs containing data related to this event. The following ConnectionOpeningEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Connection | Gets the connection that is about to be opened. |
To make the process of updating the connection string simple and safe you can use an object of the System.Data.Common.DbConnectionStringBuilder type or of a derived class which is appropriate to the type of connection, for example System.Data.SqlClient.SqlConnectionStringBuilder for the System.Data.SqlClient.SqlConnection.