ScriptComponentHost.PutSourceCode-Methode
Diese API unterstützt die SQL Server 2012-Infrastruktur und ist nicht zur direkten Verwendung im Code bestimmt.
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
Parameter
- filename
Typ: System.String
The file name.
- encoding
Typ: System.String
The encoding.
- sourceCode
Typ: System.String
The source code.
Rückgabewert
Typ: System.Boolean
The source code.