ScriptFactory.CreateNewBlankScript Method (, UIConnectionGroupInfo, IDbConnection)
Creates and opens new blank script of type of editor that is implemented by the assembly. The new script is added to the miscellaneous project.
Namespace: Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly: SQLEditors.VS (in SQLEditors.VS.dll)
Syntax
'Declaration
Public Function CreateNewBlankScript ( _
scriptType As ScriptType, _
connectionInfoList As UIConnectionGroupInfo, _
liveCon As IDbConnection _
) As Object
'Usage
Dim instance As ScriptFactory
Dim scriptType As ScriptType
Dim connectionInfoList As UIConnectionGroupInfo
Dim liveCon As IDbConnection
Dim returnValue As Object
returnValue = instance.CreateNewBlankScript(scriptType, _
connectionInfoList, liveCon)
public Object CreateNewBlankScript(
ScriptType scriptType,
UIConnectionGroupInfo connectionInfoList,
IDbConnection liveCon
)
public:
virtual Object^ CreateNewBlankScript(
ScriptType scriptType,
UIConnectionGroupInfo^ connectionInfoList,
IDbConnection^ liveCon
) sealed
abstract CreateNewBlankScript :
scriptType:ScriptType *
connectionInfoList:UIConnectionGroupInfo *
liveCon:IDbConnection -> Object
override CreateNewBlankScript :
scriptType:ScriptType *
connectionInfoList:UIConnectionGroupInfo *
liveCon:IDbConnection -> Object
public final function CreateNewBlankScript(
scriptType : ScriptType,
connectionInfoList : UIConnectionGroupInfo,
liveCon : IDbConnection
) : Object
Parameters
- scriptType
Type: ScriptType
The ScriptType of the script.
- connectionInfoList
Type: Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo
A UIConnectionGroupInfo that can be passed in to the new editor. If null, then new editor doesn't have any connection associated with it.
- liveCon
Type: System.Data.IDbConnection
A IDbConnection that can be associated with the new editor. Can be non-null only if connectionInfoList parameter is non-null/non-empty. Should be in sync with connectionInfoList parameter.
Return Value
Type: System.Object
A blank script.