TSqlModel.AddObjects 메서드 (TSqlScript, TSqlObjectOptions)
Add Objects to the model based on the contents of a TSqlScript object, plus additional metadata defined by a TSqlObjectOptions object The script should be valid TSql with no parse errors.
네임스페이스: Microsoft.SqlServer.Dac.Model
어셈블리: Microsoft.SqlServer.Dac.Extensions(Microsoft.SqlServer.Dac.Extensions.dll)
구문
‘선언
Public Sub AddObjects ( _
inputScript As TSqlScript, _
options As TSqlObjectOptions _
)
‘사용 방법
Dim instance As TSqlModel
Dim inputScript As TSqlScript
Dim options As TSqlObjectOptions
instance.AddObjects(inputScript, options)
public void AddObjects(
TSqlScript inputScript,
TSqlObjectOptions options
)
public:
void AddObjects(
TSqlScript^ inputScript,
TSqlObjectOptions^ options
)
member AddObjects :
inputScript:TSqlScript *
options:TSqlObjectOptions -> unit
public function AddObjects(
inputScript : TSqlScript,
options : TSqlObjectOptions
)
매개 변수
- inputScript
유형: Microsoft.SqlServer.TransactSql.ScriptDom.TSqlScript
The TSqlScript to add.
- options
유형: Microsoft.SqlServer.Dac.Model.TSqlObjectOptions
Options defining how to interpret the script.
예외
예외 | 조건 |
---|---|
ArgumentNullException | If the supplied inputScript is null. |
RemotingException | If communication with the TSqlObjectService fails. |