SqlScriptGenerator.GenerateTokens 方法
Generates a list of tokens representing the script generated by the specified script fragment.
命名空間: Microsoft.SqlServer.TransactSql.ScriptDom
組件: Microsoft.SqlServer.TransactSql.ScriptDom (在 Microsoft.SqlServer.TransactSql.ScriptDom.dll 中)
語法
'宣告
Public Function GenerateTokens ( _
scriptFragment As TSqlFragment _
) As IList(Of TSqlParserToken)
'用途
Dim instance As SqlScriptGenerator
Dim scriptFragment As TSqlFragment
Dim returnValue As IList(Of TSqlParserToken)
returnValue = instance.GenerateTokens(scriptFragment)
public IList<TSqlParserToken> GenerateTokens(
TSqlFragment scriptFragment
)
public:
IList<TSqlParserToken^>^ GenerateTokens(
TSqlFragment^ scriptFragment
)
member GenerateTokens :
scriptFragment:TSqlFragment -> IList<TSqlParserToken>
public function GenerateTokens(
scriptFragment : TSqlFragment
) : IList<TSqlParserToken>
參數
- scriptFragment
型別:Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment
The fragment of script to generate tokens for.
傳回值
型別:System.Collections.Generic.IList<TSqlParserToken>
A list of tokens.