DataConnectionPromptDialog.OnFormClosing Method
Handles specific actions that occur when the dialog box is closed, such as saving properties from the dialog box controls, saving the new connection string, and opening the connection if the OK button of the dialog box is clicked.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Protected Overrides Sub OnFormClosing ( _
e As FormClosingEventArgs _
)
protected override void OnFormClosing(
FormClosingEventArgs e
)
protected:
virtual void OnFormClosing(
FormClosingEventArgs^ e
) override
abstract OnFormClosing :
e:FormClosingEventArgs -> unit
override OnFormClosing :
e:FormClosingEventArgs -> unit
protected override function OnFormClosing(
e : FormClosingEventArgs
)
Parameters
- e
Type: System.Windows.Forms.FormClosingEventArgs
A FormClosingEventArgs object containing the event data.
Remarks
The base class implementation calls the SaveProperties method and then tries to open the connection by using the stored IVsDataConnectionSupport object. If this fails, it shows a message box and returns the user to the prompt dialog box.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.