共用方式為


SqlScriptGenerator.GenerateTokens 方法

產生表示以指定指令碼片段產生之指令碼的語彙基元清單。

命名空間:  Microsoft.Data.Schema.ScriptDom.Sql
組件:  Microsoft.Data.Schema.ScriptDom.Sql (在 Microsoft.Data.Schema.ScriptDom.Sql.dll 中)

語法

'宣告
Public Function GenerateTokens ( _
    scriptFragment As TSqlFragment _
) As IList(Of TSqlParserToken)
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>

參數

傳回值

型別:System.Collections.Generic.IList<TSqlParserToken>

.NET Framework 安全性

請參閱

參考

SqlScriptGenerator 類別

Microsoft.Data.Schema.ScriptDom.Sql 命名空間