Share via


ScriptComponentHost.PutSourceCode Method

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

Return Value

Type: System.Boolean
The source code.

See Also

Reference

ScriptComponentHost Class

Microsoft.SqlServer.Dts.Pipeline Namespace