ScriptFactory.CreateNewScript Method

Definition

Creates and opens new blank script of specified template file that is implemented by the assembly. The editor for this script should be implemented by this assembly. The new script is added to the miscellaneous project.

Overloads

CreateNewScript(String, IVsProject, UIConnectionGroupInfo, IDbConnection, String)

Creates and opens new blank script of specified file and adds it to the specified project.

CreateNewScript(String, IVsProject, UIConnectionInfo, IDbConnection)

Creates and opens new blank script of specified file and adds it to the specified project.

CreateNewScript(String, IVsProject, UIConnectionGroupInfo, IDbConnection)

Creates and opens new blank script of specified file and adds it to the specified project.

CreateNewScript(String, IVsProject, UIConnectionInfo, IDbConnection, String)

Creates and opens new blank script of specified file and adds it to the specified project.

CreateNewScript(String, UIConnectionGroupInfo, IDbConnection, String)

Creates and opens new blank script of specified template file that is implemented by the assembly. The editor for this script should be implemented by this assembly. The new script is added to the miscellaneous project.

CreateNewScript(String, UIConnectionInfo, IDbConnection)

Creates and opens new blank script of specified template file that is implemented by the assembly. The editor for this script should be implemented by this assembly. The new script is added to the miscellaneous project.

CreateNewScript(String, UIConnectionGroupInfo, IDbConnection)

Creates and opens new blank script of specified template file that is implemented by the assembly. The editor for this script should be implemented by this assembly. The new script is added to the miscellaneous project.

CreateNewScript(String, UIConnectionInfo, IDbConnection, String)

Creates and opens new blank script of specified template file that is implemented by the assembly. The editor for this script should be implemented by this assembly. The new script is added to the miscellaneous project.

CreateNewScript(String, IVsProject, UIConnectionGroupInfo, IDbConnection, String)

Creates and opens new blank script of specified file and adds it to the specified project.

public:
 System::Object ^ CreateNewScript(System::String ^ strFullPathToScript, Microsoft::VisualStudio::Shell::Interop::IVsProject ^ projectToAddScriptTo, Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionGroupInfo ^ connectionInfoList, System::Data::IDbConnection ^ liveCon, System::String ^ rootName);
public object CreateNewScript (string strFullPathToScript, Microsoft.VisualStudio.Shell.Interop.IVsProject projectToAddScriptTo, Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo connectionInfoList, System.Data.IDbConnection liveCon, string rootName);
member this.CreateNewScript : string * Microsoft.VisualStudio.Shell.Interop.IVsProject * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo * System.Data.IDbConnection * string -> obj
Public Function CreateNewScript (strFullPathToScript As String, projectToAddScriptTo As IVsProject, connectionInfoList As UIConnectionGroupInfo, liveCon As IDbConnection, rootName As String) As Object

Parameters

strFullPathToScript
String

A string value that specifies the full path to the script.

projectToAddScriptTo
IVsProject

A IVsProject that is currently loaded.

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.

rootName
String

A string value that specifies the root name corresponding to file extension.

Returns

The document view Object for the new script editor.

Applies to

CreateNewScript(String, IVsProject, UIConnectionInfo, IDbConnection)

Creates and opens new blank script of specified file and adds it to the specified project.

public:
 System::Object ^ CreateNewScript(System::String ^ strFullPathToScript, Microsoft::VisualStudio::Shell::Interop::IVsProject ^ projectToAddScriptTo, Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionInfo ^ ci, System::Data::IDbConnection ^ liveCon);
public object CreateNewScript (string strFullPathToScript, Microsoft.VisualStudio.Shell.Interop.IVsProject projectToAddScriptTo, Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo ci, System.Data.IDbConnection liveCon);
member this.CreateNewScript : string * Microsoft.VisualStudio.Shell.Interop.IVsProject * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo * System.Data.IDbConnection -> obj
Public Function CreateNewScript (strFullPathToScript As String, projectToAddScriptTo As IVsProject, ci As UIConnectionInfo, liveCon As IDbConnection) As Object

Parameters

strFullPathToScript
String

A string value that specifies the full path to the script.

projectToAddScriptTo
IVsProject

A IVsProject that is currently loaded.

ci
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
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

CreateNewScript(String, IVsProject, UIConnectionGroupInfo, IDbConnection)

Creates and opens new blank script of specified file and adds it to the specified project.

public:
 System::Object ^ CreateNewScript(System::String ^ strFullPathToScript, Microsoft::VisualStudio::Shell::Interop::IVsProject ^ projectToAddScriptTo, Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionGroupInfo ^ connectionInfoList, System::Data::IDbConnection ^ liveCon);
public object CreateNewScript (string strFullPathToScript, Microsoft.VisualStudio.Shell.Interop.IVsProject projectToAddScriptTo, Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo connectionInfoList, System.Data.IDbConnection liveCon);
member this.CreateNewScript : string * Microsoft.VisualStudio.Shell.Interop.IVsProject * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo * System.Data.IDbConnection -> obj
Public Function CreateNewScript (strFullPathToScript As String, projectToAddScriptTo As IVsProject, connectionInfoList As UIConnectionGroupInfo, liveCon As IDbConnection) As Object

Parameters

strFullPathToScript
String

A string value that specifies the full path to the script.

projectToAddScriptTo
IVsProject

A IVsProject that is currently loaded.

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

CreateNewScript(String, IVsProject, UIConnectionInfo, IDbConnection, String)

Creates and opens new blank script of specified file and adds it to the specified project.

public:
 System::Object ^ CreateNewScript(System::String ^ strFullPathToScript, Microsoft::VisualStudio::Shell::Interop::IVsProject ^ projectToAddScriptTo, Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionInfo ^ ci, System::Data::IDbConnection ^ liveCon, System::String ^ rootName);
public object CreateNewScript (string strFullPathToScript, Microsoft.VisualStudio.Shell.Interop.IVsProject projectToAddScriptTo, Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo ci, System.Data.IDbConnection liveCon, string rootName);
member this.CreateNewScript : string * Microsoft.VisualStudio.Shell.Interop.IVsProject * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo * System.Data.IDbConnection * string -> obj
Public Function CreateNewScript (strFullPathToScript As String, projectToAddScriptTo As IVsProject, ci As UIConnectionInfo, liveCon As IDbConnection, rootName As String) As Object

Parameters

strFullPathToScript
String

A string value that specifies the full path to the script.

projectToAddScriptTo
IVsProject

A IVsProject that is currently loaded.

ci
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
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.

rootName
String

A string value that specifies the root name corresponding to file extension.

Returns

The document view Object for the new script editor.

Applies to

CreateNewScript(String, UIConnectionGroupInfo, IDbConnection, String)

Creates and opens new blank script of specified template file that is implemented by the assembly. The editor for this script should be implemented by this assembly. The new script is added to the miscellaneous project.

public:
 virtual System::Object ^ CreateNewScript(System::String ^ strFullPathToScript, Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionGroupInfo ^ connectionInfoList, System::Data::IDbConnection ^ liveCon, System::String ^ fileRoot);
public object CreateNewScript (string strFullPathToScript, Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo connectionInfoList, System.Data.IDbConnection liveCon, string fileRoot);
abstract member CreateNewScript : string * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo * System.Data.IDbConnection * string -> obj
override this.CreateNewScript : string * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo * System.Data.IDbConnection * string -> obj
Public Function CreateNewScript (strFullPathToScript As String, connectionInfoList As UIConnectionGroupInfo, liveCon As IDbConnection, fileRoot As String) As Object

Parameters

strFullPathToScript
String

A string value that specifies the full path to 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.

fileRoot
String

A string value that specifies the root of the path to the script.

Returns

The document view Object for the new script editor.

Implements

Applies to

CreateNewScript(String, UIConnectionInfo, IDbConnection)

Creates and opens new blank script of specified template file that is implemented by the assembly. The editor for this script should be implemented by this assembly. The new script is added to the miscellaneous project.

public:
 virtual System::Object ^ CreateNewScript(System::String ^ strFullPathToScript, Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionInfo ^ ci, System::Data::IDbConnection ^ liveCon);
public object CreateNewScript (string strFullPathToScript, Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo ci, System.Data.IDbConnection liveCon);
abstract member CreateNewScript : string * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo * System.Data.IDbConnection -> obj
override this.CreateNewScript : string * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo * System.Data.IDbConnection -> obj
Public Function CreateNewScript (strFullPathToScript As String, ci As UIConnectionInfo, liveCon As IDbConnection) As Object

Parameters

strFullPathToScript
String

A string value that specifies the full path to the script.

ci
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
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

CreateNewScript(String, UIConnectionGroupInfo, IDbConnection)

Creates and opens new blank script of specified template file that is implemented by the assembly. The editor for this script should be implemented by this assembly. The new script is added to the miscellaneous project.

public:
 virtual System::Object ^ CreateNewScript(System::String ^ strFullPathToScript, Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionGroupInfo ^ connectionInfoList, System::Data::IDbConnection ^ liveCon);
public object CreateNewScript (string strFullPathToScript, Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo connectionInfoList, System.Data.IDbConnection liveCon);
abstract member CreateNewScript : string * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo * System.Data.IDbConnection -> obj
override this.CreateNewScript : string * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo * System.Data.IDbConnection -> obj
Public Function CreateNewScript (strFullPathToScript As String, connectionInfoList As UIConnectionGroupInfo, liveCon As IDbConnection) As Object

Parameters

strFullPathToScript
String

A string value that specifies the full path to 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

CreateNewScript(String, UIConnectionInfo, IDbConnection, String)

Creates and opens new blank script of specified template file that is implemented by the assembly. The editor for this script should be implemented by this assembly. The new script is added to the miscellaneous project.

public:
 virtual System::Object ^ CreateNewScript(System::String ^ strFullPathToScript, Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionInfo ^ ci, System::Data::IDbConnection ^ liveCon, System::String ^ fileRoot);
public object CreateNewScript (string strFullPathToScript, Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo ci, System.Data.IDbConnection liveCon, string fileRoot);
abstract member CreateNewScript : string * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo * System.Data.IDbConnection * string -> obj
override this.CreateNewScript : string * Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo * System.Data.IDbConnection * string -> obj
Public Function CreateNewScript (strFullPathToScript As String, ci As UIConnectionInfo, liveCon As IDbConnection, fileRoot As String) As Object

Parameters

strFullPathToScript
String

A string value that specifies the full path to the script.

ci
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
IDbConnection

A System.Data.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.

fileRoot
String

A string value that specifies the root of the path to the script.

Returns

The document view Object for the new script editor.

Implements

Applies to