다음을 통해 공유


ScriptComponentHost.PutSourceCode 메서드

이 API는 SQL Server 2012 인프라를 지원하기 위한 것으로 코드에서 직접 사용할 수 없습니다.

Puts source code to the ScriptComponentHost.

네임스페이스:  Microsoft.SqlServer.Dts.Pipeline
어셈블리:  Microsoft.SqlServer.TxScript(Microsoft.SqlServer.TxScript.dll)

구문

‘선언
Public Function PutSourceCode ( _
    filename As String, _
    encoding As String, _
    sourceCode As String _
) As Boolean
‘사용 방법
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

매개 변수

반환 값

유형: System.Boolean
The source code.

참고 항목

참조

ScriptComponentHost 클래스

Microsoft.SqlServer.Dts.Pipeline 네임스페이스