ScriptComponentHost.CreateNewProject 方法
此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。
Creates a new ScriptComponentHost project.
命名空間: Microsoft.SqlServer.Dts.Pipeline
組件: Microsoft.SqlServer.TxScript (在 Microsoft.SqlServer.TxScript.dll 中)
語法
'宣告
Public Function CreateNewProject ( _
projectName As String, _
bAddMain As Boolean, _
bAddWrappers As Boolean _
) As Boolean
'用途
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
參數
- projectName
型別:System.String
The name of the project.
- bAddMain
型別:System.Boolean
True if main will be added; otherwise, false.
- bAddWrappers
型別:System.Boolean
True if wrappers will be added; otherwise, false.
傳回值
型別:System.Boolean
The created project.