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

네임스페이스:  Microsoft.SqlServer.Management.UI.VSIntegration.Editors
어셈블리:  SQLEditors(SQLEditors.dll)

구문

‘선언
Public Function CreateNewScript ( _
    strFullPathToScript As String, _
    ci As UIConnectionInfo, _
    liveCon As IDbConnection, _
    fileRoot As String _
) As Object
‘사용 방법
Dim instance As ScriptFactory 
Dim strFullPathToScript As String 
Dim ci As UIConnectionInfo 
Dim liveCon As IDbConnection 
Dim fileRoot As String 
Dim returnValue As Object 

returnValue = instance.CreateNewScript(strFullPathToScript, _
    ci, liveCon, fileRoot)
public Object CreateNewScript(
    string strFullPathToScript,
    UIConnectionInfo ci,
    IDbConnection liveCon,
    string fileRoot
)
public:
virtual Object^ CreateNewScript(
    String^ strFullPathToScript, 
    UIConnectionInfo^ ci, 
    IDbConnection^ liveCon, 
    String^ fileRoot
) sealed
abstract CreateNewScript : 
        strFullPathToScript:string * 
        ci:UIConnectionInfo * 
        liveCon:IDbConnection * 
        fileRoot:string -> Object  
override CreateNewScript : 
        strFullPathToScript:string * 
        ci:UIConnectionInfo * 
        liveCon:IDbConnection * 
        fileRoot:string -> Object
public final function CreateNewScript(
    strFullPathToScript : String, 
    ci : UIConnectionInfo, 
    liveCon : IDbConnection, 
    fileRoot : String
) : Object

매개 변수

  • strFullPathToScript
    유형: System.String
    A string value that specifies the full path to the script.
  • liveCon
    유형: 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.
  • fileRoot
    유형: System.String
    A string value that specifies the root of the path to the script.

반환 값

유형: System.Object
The document view Object for the new script editor.

참고 항목

참조

ScriptFactory 클래스

CreateNewScript 오버로드

Microsoft.SqlServer.Management.UI.VSIntegration.Editors 네임스페이스