SqlScriptGenerator.GenerateTokens Method (TSqlFragment)

 

Applies To: SQL Server 2016 Preview

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

Namespace:   Microsoft.SqlServer.TransactSql.ScriptDom
Assembly:  Microsoft.SqlServer.TransactSql.ScriptDom (in Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Syntax

public IList<TSqlParserToken> GenerateTokens(
    TSqlFragment scriptFragment
)
public:
IList<TSqlParserToken^>^ GenerateTokens(
    TSqlFragment^ scriptFragment
)
member GenerateTokens : 
        scriptFragment:TSqlFragment -> IList<TSqlParserToken>
Public Function GenerateTokens (
    scriptFragment As TSqlFragment
) As IList(Of TSqlParserToken)

Parameters

Return Value

Type: System.Collections.Generic.IList<TSqlParserToken>

A list of tokens.

See Also

SqlScriptGenerator Class
Microsoft.SqlServer.TransactSql.ScriptDom Namespace

Return to top