ScriptFactory.CreateNewBlankScript Method (ScriptType, IVsProject, UIConnectionInfo, IDbConnection)
Creates and opens new blank script of type of editor that is implemented by the assembly. The new script is added to the specified project.
Namespace: Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly: SQLEditors (in SQLEditors.dll)
Syntax
'Declaration
Public Function CreateNewBlankScript ( _
scriptType As ScriptType, _
projectToAddScriptTo As IVsProject, _
ci As UIConnectionInfo, _
liveCon As IDbConnection _
) As Object
'Usage
Dim instance As ScriptFactory
Dim scriptType As ScriptType
Dim projectToAddScriptTo As IVsProject
Dim ci As UIConnectionInfo
Dim liveCon As IDbConnection
Dim returnValue As Object
returnValue = instance.CreateNewBlankScript(scriptType, _
projectToAddScriptTo, ci, liveCon)
public Object CreateNewBlankScript(
ScriptType scriptType,
IVsProject projectToAddScriptTo,
UIConnectionInfo ci,
IDbConnection liveCon
)
public:
Object^ CreateNewBlankScript(
ScriptType scriptType,
IVsProject^ projectToAddScriptTo,
UIConnectionInfo^ ci,
IDbConnection^ liveCon
)
member CreateNewBlankScript :
scriptType:ScriptType *
projectToAddScriptTo:IVsProject *
ci:UIConnectionInfo *
liveCon:IDbConnection -> Object
public function CreateNewBlankScript(
scriptType : ScriptType,
projectToAddScriptTo : IVsProject,
ci : UIConnectionInfo,
liveCon : IDbConnection
) : Object
Parameters
- scriptType
Type: ScriptType
The ScriptType of the script.
- projectToAddScriptTo
Type: IVsProject
The IVsProject to add the new script to.
- ci
Type: Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo
A UIConnectionInfo 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
The document view Object for the new script editor.
See Also
Reference
Microsoft.SqlServer.Management.UI.VSIntegration.Editors Namespace