ScriptFactory.CreateNewBlankScript Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates and opens a new blank script.
Overloads
CreateNewBlankScript(ScriptType) |
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. |
CreateNewBlankScript(ScriptType, IVsProject) |
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. |
CreateNewBlankScript(ScriptType, 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. |
CreateNewBlankScript(ScriptType, 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 miscellaneous project. |
CreateNewBlankScript(ScriptType, IVsProject, 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 specified project. |
CreateNewBlankScript(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. |
CreateNewBlankScript(ScriptType)
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.
public:
virtual System::Object ^ CreateNewBlankScript(Microsoft::SqlServer::Management::UI::VSIntegration::Editors::ScriptType scriptType);
public object CreateNewBlankScript (Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType scriptType);
abstract member CreateNewBlankScript : Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType -> obj
override this.CreateNewBlankScript : Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType -> obj
Public Function CreateNewBlankScript (scriptType As ScriptType) As Object
Parameters
- scriptType
- ScriptType
The ScriptType of the script.
Returns
The document view Object for the new script editor.
Implements
Applies to
CreateNewBlankScript(ScriptType, IVsProject)
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.
public:
System::Object ^ CreateNewBlankScript(Microsoft::SqlServer::Management::UI::VSIntegration::Editors::ScriptType scriptType, Microsoft::VisualStudio::Shell::Interop::IVsProject ^ projectToAddScriptTo);
public object CreateNewBlankScript (Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType scriptType, Microsoft.VisualStudio.Shell.Interop.IVsProject projectToAddScriptTo);
member this.CreateNewBlankScript : Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType * Microsoft.VisualStudio.Shell.Interop.IVsProject -> obj
Public Function CreateNewBlankScript (scriptType As ScriptType, projectToAddScriptTo As IVsProject) As Object
Parameters
- scriptType
- ScriptType
The ScriptType of the script.
- projectToAddScriptTo
- IVsProject
The IVsProject to add the new script to.
Returns
The document view Object for the new script editor.
Applies to
CreateNewBlankScript(ScriptType, 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.
public:
virtual System::Object ^ CreateNewBlankScript(Microsoft::SqlServer::Management::UI::VSIntegration::Editors::ScriptType scriptType, Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionGroupInfo ^ connectionInfoList, System::Data::IDbConnection ^ liveCon);
public object CreateNewBlankScript (Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType scriptType, Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo connectionInfoList, System.Data.IDbConnection liveCon);
abstract member CreateNewBlankScript : Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo * System.Data.IDbConnection -> obj
override this.CreateNewBlankScript : Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo * System.Data.IDbConnection -> obj
Public Function CreateNewBlankScript (scriptType As ScriptType, connectionInfoList As UIConnectionGroupInfo, liveCon As IDbConnection) As Object
Parameters
- scriptType
- ScriptType
The ScriptType of the script.
- connectionInfoList
- 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
- 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.
Returns
The document view Object for the new script editor.
Implements
Applies to
CreateNewBlankScript(ScriptType, 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 miscellaneous project.
public:
virtual System::Object ^ CreateNewBlankScript(Microsoft::SqlServer::Management::UI::VSIntegration::Editors::ScriptType scriptType, Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionInfo ^ ci, System::Data::IDbConnection ^ liveCon);
public object CreateNewBlankScript (Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType scriptType, Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo ci, System.Data.IDbConnection liveCon);
abstract member CreateNewBlankScript : Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo * System.Data.IDbConnection -> obj
override this.CreateNewBlankScript : Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo * System.Data.IDbConnection -> obj
Public Function CreateNewBlankScript (scriptType As ScriptType, ci As UIConnectionInfo, liveCon As IDbConnection) As Object
Parameters
- scriptType
- ScriptType
The ScriptType of the script.
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
- IDbConnection
A IDbConnection that can be associated with the new editor. Can be non-null only if ci
parameter is non-null/non-empty. Should be in sync with connectionInfoList
parameter. ci
parameter is non-null. Should be in sync with ci
parameter.
Returns
The document view Object for the new script editor.
Implements
Applies to
CreateNewBlankScript(ScriptType, IVsProject, 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 specified project.
public:
System::Object ^ CreateNewBlankScript(Microsoft::SqlServer::Management::UI::VSIntegration::Editors::ScriptType scriptType, Microsoft::VisualStudio::Shell::Interop::IVsProject ^ projectToAddScriptTo, Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionGroupInfo ^ connectionInfoList, System::Data::IDbConnection ^ liveCon);
public object CreateNewBlankScript (Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType scriptType, Microsoft.VisualStudio.Shell.Interop.IVsProject projectToAddScriptTo, Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo connectionInfoList, System.Data.IDbConnection liveCon);
member this.CreateNewBlankScript : Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType * Microsoft.VisualStudio.Shell.Interop.IVsProject * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo * System.Data.IDbConnection -> obj
Public Function CreateNewBlankScript (scriptType As ScriptType, projectToAddScriptTo As IVsProject, connectionInfoList As UIConnectionGroupInfo, liveCon As IDbConnection) As Object
Parameters
- scriptType
- ScriptType
The ScriptType of the script.
- projectToAddScriptTo
- IVsProject
The IVsProject to add the new script to.
- connectionInfoList
- 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
- 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.
Returns
The document view Object for the new script editor.
Applies to
CreateNewBlankScript(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.
public:
System::Object ^ CreateNewBlankScript(Microsoft::SqlServer::Management::UI::VSIntegration::Editors::ScriptType scriptType, Microsoft::VisualStudio::Shell::Interop::IVsProject ^ projectToAddScriptTo, Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionInfo ^ ci, System::Data::IDbConnection ^ liveCon);
public object CreateNewBlankScript (Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType scriptType, Microsoft.VisualStudio.Shell.Interop.IVsProject projectToAddScriptTo, Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo ci, System.Data.IDbConnection liveCon);
member this.CreateNewBlankScript : Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType * Microsoft.VisualStudio.Shell.Interop.IVsProject * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo * System.Data.IDbConnection -> obj
Public Function CreateNewBlankScript (scriptType As ScriptType, projectToAddScriptTo As IVsProject, ci As UIConnectionInfo, liveCon As IDbConnection) As Object
Parameters
- scriptType
- ScriptType
The ScriptType of the script.
- projectToAddScriptTo
- IVsProject
The IVsProject to add the new script to.
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
- 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.
Returns
The document view Object for the new script editor.