TSqlModel.AddObjects-Methode (TSqlScript)
Adds objects to the model based on the contents of a TSqlScript 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 _
)
'Usage
Dim instance As TSqlModel
Dim inputScript As TSqlScript
instance.AddObjects(inputScript)
public void AddObjects(
TSqlScript inputScript
)
public:
void AddObjects(
TSqlScript^ inputScript
)
member AddObjects :
inputScript:TSqlScript -> unit
public function AddObjects(
inputScript : TSqlScript
)
Parameter
- inputScript
Typ: Microsoft.SqlServer.TransactSql.ScriptDom.TSqlScript
The TSqlScript to add.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentNullException | If the supplied inputScript is null. |
RemotingException | If communication with the TSqlObjectService fails. |