Partager via


SqlScriptGenerator.GenerateTokens(TSqlFragment) Method

Definition

Generates a list of tokens representing the script generated by the specified script fragment

public System.Collections.Generic.IList<Microsoft.SqlServer.TransactSql.ScriptDom.TSqlParserToken> GenerateTokens (Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment scriptFragment);
member this.GenerateTokens : Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment -> System.Collections.Generic.IList<Microsoft.SqlServer.TransactSql.ScriptDom.TSqlParserToken>
Public Function GenerateTokens (scriptFragment As TSqlFragment) As IList(Of TSqlParserToken)

Parameters

scriptFragment
TSqlFragment

The fragment of script to generate tokens for

Returns

A object capable of enumerating a list of tokens

Applies to