Поделиться через


Метод 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.