共用方式為


TSqlObject.GetAst 方法

Generates the AST for the TSqlObject.

命名空間:  Microsoft.SqlServer.Dac.Model
組件:  Microsoft.SqlServer.Dac.Extensions (在 Microsoft.SqlServer.Dac.Extensions.dll 中)

語法

'宣告
Public Function GetAst As TSqlScript
'用途
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

傳回值

型別:Microsoft.SqlServer.TransactSql.ScriptDom.TSqlScript
Generated AST.

例外狀況

例外狀況 條件
DacModelException

If TSqlObject is not a top level statement object.

請參閱

參考

TSqlObject 類別

Microsoft.SqlServer.Dac.Model 命名空間