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>
参数
- scriptFragment
类型:Microsoft.Data.Schema.ScriptDom.Sql.TSqlFragment
要生成令牌的脚本片段
返回值
类型:System.Collections.Generic.IList<TSqlParserToken>
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。