Metodo ScriptComponentHost.PutSourceCode

Questa API supporta l'infrastruttura SQL Server 2012 e non può essere utilizzata direttamente dal codice.

Puts source code to the ScriptComponentHost.

Spazio dei nomi  Microsoft.SqlServer.Dts.Pipeline
Assembly:  Microsoft.SqlServer.TxScript (in Microsoft.SqlServer.TxScript.dll)

Sintassi

'Dichiarazione
Public Function PutSourceCode ( _
    filename As String, _
    encoding As String, _
    sourceCode As String _
) As Boolean
'Utilizzo
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

Parametri

Valore restituito

Tipo: System.Boolean
The source code.

Vedere anche

Riferimento

ScriptComponentHost Classe

Spazio dei nomi Microsoft.SqlServer.Dts.Pipeline