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
参数
- filename
类型:System.String
The file name.
- encoding
类型:System.String
The encoding.
- sourceCode
类型:System.String
The source code.
返回值
类型:System.Boolean
The source code.