Share via


ScriptAndResultsEditorControl.NewConnectionForScript Event

Event that is fired when a user specifies a new connection for the script from the connection dialog box.

Namespace:  Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly:  SQLEditors (in SQLEditors.dll)

Syntax

'Declaration
Public Event NewConnectionForScript As NewConnectionForScriptEventHandler
'Usage
Dim instance As ScriptAndResultsEditorControl 
Dim handler As NewConnectionForScriptEventHandler 

AddHandler instance.NewConnectionForScript, handler
public event NewConnectionForScriptEventHandler NewConnectionForScript
public:
virtual   event NewConnectionForScriptEventHandler^ NewConnectionForScript {
    void add (NewConnectionForScriptEventHandler^ value);
    void remove (NewConnectionForScriptEventHandler^ value);
}
abstract NewConnectionForScript : IEvent<NewConnectionForScriptEventHandler,
    NewConnectionForScriptEventArgs>
override NewConnectionForScript : IEvent<NewConnectionForScriptEventHandler,
    NewConnectionForScriptEventArgs>
JScript supports the use of events, but not the declaration of new ones.

See Also

Reference

ScriptAndResultsEditorControl Class

Microsoft.SqlServer.Management.UI.VSIntegration.Editors Namespace