SqlScriptGenerator.GenerateScript 方法 (TSqlFragment, String%)
Generates a text representing the specified script fragment.
命名空間: Microsoft.SqlServer.TransactSql.ScriptDom
組件: Microsoft.SqlServer.TransactSql.ScriptDom (在 Microsoft.SqlServer.TransactSql.ScriptDom.dll 中)
語法
'宣告
Public Sub GenerateScript ( _
scriptFragment As TSqlFragment, _
<OutAttribute> ByRef script As String _
)
'用途
Dim instance As SqlScriptGenerator
Dim scriptFragment As TSqlFragment
Dim script As String
instance.GenerateScript(scriptFragment, _
script)
public void GenerateScript(
TSqlFragment scriptFragment,
out string script
)
public:
void GenerateScript(
TSqlFragment^ scriptFragment,
[OutAttribute] String^% script
)
member GenerateScript :
scriptFragment:TSqlFragment *
script:string byref -> unit
public function GenerateScript(
scriptFragment : TSqlFragment,
script : String
)
參數
- scriptFragment
型別:Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment
The fragment of script to generate tokens for.
- script
型別:System.String%
The script.