Méthode TSqlObject.TryGetAst
Attempts to generate an AST for the object.
Espace de noms : Microsoft.SqlServer.Dac.Model
Assembly : Microsoft.SqlServer.Dac.Extensions (en Microsoft.SqlServer.Dac.Extensions.dll)
Syntaxe
'Déclaration
Public Function TryGetAst ( _
<OutAttribute> ByRef objectAst As TSqlScript _
) As Boolean
'Utilisation
Dim instance As TSqlObject
Dim objectAst As TSqlScript
Dim returnValue As Boolean
returnValue = instance.TryGetAst(objectAst)
public bool TryGetAst(
out TSqlScript objectAst
)
public:
bool TryGetAst(
[OutAttribute] TSqlScript^% objectAst
)
member TryGetAst :
objectAst:TSqlScript byref -> bool
public function TryGetAst(
objectAst : TSqlScript
) : boolean
Paramètres
- objectAst
Type : Microsoft.SqlServer.TransactSql.ScriptDom.TSqlScript%
Generated AST.
Valeur de retour
Type : System.Boolean
true if AST generated, otherwise; false.
Notes
Only top level statement objects can have an AST generated.