Share via


TSqlObject.GetAst Method

Generates the AST for the TSqlObject.

Namespace:  Microsoft.SqlServer.Dac.Model
Assembly:  Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)

Syntax

'Declaration
Public Function GetAst As TSqlScript
'Usage
Dim instance As TSqlObject 
Dim returnValue As TSqlScript 

returnValue = instance.GetAst()
public TSqlScript GetAst()
public:
TSqlScript^ GetAst()
member GetAst : unit -> TSqlScript
public function GetAst() : TSqlScript

Return Value

Type: Microsoft.SqlServer.TransactSql.ScriptDom.TSqlScript
Generated AST.

Exceptions

Exception Condition
DacModelException

If TSqlObject is not a top level statement object.

See Also

Reference

TSqlObject Class

Microsoft.SqlServer.Dac.Model Namespace