Méthode ScriptComponentHost.PutSourceCode
Cette API prend en charge l'infrastructure SQL Server 2012 et n'est pas destinée à être utilisée directement à partir de votre code.
Puts source code to the ScriptComponentHost.
Espace de noms : Microsoft.SqlServer.Dts.Pipeline
Assembly : Microsoft.SqlServer.TxScript (en Microsoft.SqlServer.TxScript.dll)
Syntaxe
'Déclaration
Public Function PutSourceCode ( _
filename As String, _
encoding As String, _
sourceCode As String _
) As Boolean
'Utilisation
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
Paramètres
- filename
Type : System.String
The file name.
- encoding
Type : System.String
The encoding.
- sourceCode
Type : System.String
The source code.
Valeur de retour
Type : System.Boolean
The source code.