다음을 통해 공유


AddTSqlSourceFile 메서드

Adds a Transact-SQL script file to the compilation unit.

네임스페이스:  Microsoft.SqlServer.Management.Dac
어셈블리:  Microsoft.SqlServer.Management.Dac(Microsoft.SqlServer.Management.Dac.dll)

구문

‘선언
Public Function AddTSqlSourceFile ( _
    filename As String, _
    content As String _
) As TSqlSourceFile
‘사용 방법
Dim instance As DacCompilationUnit
Dim filename As String
Dim content As String
Dim returnValue As TSqlSourceFile

returnValue = instance.AddTSqlSourceFile(filename, _
    content)
public TSqlSourceFile AddTSqlSourceFile(
    string filename,
    string content
)
public:
TSqlSourceFile^ AddTSqlSourceFile(
    String^ filename, 
    String^ content
)
member AddTSqlSourceFile : 
        filename:string * 
        content:string -> TSqlSourceFile 
public function AddTSqlSourceFile(
    filename : String, 
    content : String
) : TSqlSourceFile

매개 변수

반환 값

유형: Microsoft.SqlServer.Management.Dac. . :: . .TSqlSourceFile
A TSqlSrouceFile object that specifies the script file that is added to the compilation unit.