Freigeben über


ScriptComponentHost.CreateNewProject-Methode

Diese API unterstützt die SQL Server 2012-Infrastruktur und ist nicht zur direkten Verwendung im Code bestimmt.

Creates a new ScriptComponentHost project.

Namespace:  Microsoft.SqlServer.Dts.Pipeline
Assembly:  Microsoft.SqlServer.TxScript (in Microsoft.SqlServer.TxScript.dll)

Syntax

'Declaration
Public Function CreateNewProject ( _
    projectName As String, _
    bAddMain As Boolean, _
    bAddWrappers As Boolean _
) As Boolean
'Usage
Dim instance As ScriptComponentHost 
Dim projectName As String 
Dim bAddMain As Boolean 
Dim bAddWrappers As Boolean 
Dim returnValue As Boolean 

returnValue = instance.CreateNewProject(projectName, _
    bAddMain, bAddWrappers)
public bool CreateNewProject(
    string projectName,
    bool bAddMain,
    bool bAddWrappers
)
public:
bool CreateNewProject(
    String^ projectName, 
    bool bAddMain, 
    bool bAddWrappers
)
member CreateNewProject : 
        projectName:string * 
        bAddMain:bool * 
        bAddWrappers:bool -> bool
public function CreateNewProject(
    projectName : String, 
    bAddMain : boolean, 
    bAddWrappers : boolean
) : boolean

Parameter

  • bAddMain
    Typ: System.Boolean
    True if main will be added; otherwise, false.
  • bAddWrappers
    Typ: System.Boolean
    True if wrappers will be added; otherwise, false.

Rückgabewert

Typ: System.Boolean
The created project.

Siehe auch

Verweis

ScriptComponentHost Klasse

Microsoft.SqlServer.Dts.Pipeline-Namespace