TSqlModel.AddObjects Method (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.
Namespace: Microsoft.SqlServer.Dac.Model
Assembly: Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)
Syntax
'Declaration
Public Sub AddObjects ( _
inputScript As TSqlScript, _
options As TSqlObjectOptions _
)
'Usage
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
)
Parameters
- inputScript
Type: Microsoft.SqlServer.TransactSql.ScriptDom.TSqlScript
The TSqlScript to add.
- options
Type: Microsoft.SqlServer.Dac.Model.TSqlObjectOptions
Options defining how to interpret the script.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If the supplied inputScript is null. |
RemotingException | If communication with the TSqlObjectService fails. |