Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This API supports the SQL Server 2012 infrastructure and is not intended to be used directly from your code.
Puts source code to the ScriptComponentHost.
Namespace: Microsoft.SqlServer.Dts.Pipeline
Assembly: Microsoft.SqlServer.TxScript (in Microsoft.SqlServer.TxScript.dll)
Syntax
'Declaration
Public Function PutSourceCode ( _
filename As String, _
encoding As String, _
sourceCode As String _
) As Boolean
'Usage
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
Parameters
- filename
Type: System.String
The file name.
- encoding
Type: System.String
The encoding.
- sourceCode
Type: System.String
The source code.
Return Value
Type: System.Boolean
The source code.