共用方式為


ScriptComponentHost.PutSourceCode 方法

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Puts source code to the ScriptComponentHost.

命名空間:  Microsoft.SqlServer.Dts.Pipeline
組件:  Microsoft.SqlServer.TxScript (在 Microsoft.SqlServer.TxScript.dll 中)

語法

'宣告
Public Function PutSourceCode ( _
    filename As String, _
    encoding As String, _
    sourceCode As String _
) As Boolean
'用途
Dim instance As ScriptComponentHost 
Dim filename As String 
Dim encoding As String 
Dim sourceCode As String 
Dim returnValue As Boolean 

returnValue = instance.PutSourceCode(filename, _
    encoding, sourceCode)
public bool PutSourceCode(
    string filename,
    string encoding,
    string sourceCode
)
public:
bool PutSourceCode(
    String^ filename, 
    String^ encoding, 
    String^ sourceCode
)
member PutSourceCode : 
        filename:string * 
        encoding:string * 
        sourceCode:string -> bool
public function PutSourceCode(
    filename : String, 
    encoding : String, 
    sourceCode : String
) : boolean

參數

傳回值

型別:System.Boolean
The source code.

請參閱

參考

ScriptComponentHost 類別

Microsoft.SqlServer.Dts.Pipeline 命名空間