SqlScriptGenerator.GenerateScript Method (TSqlFragment, TextWriter)
Generates text representing the specified script fragment.
Namespace: Microsoft.Data.Schema.ScriptDom.Sql
Assembly: Microsoft.Data.Schema.ScriptDom.Sql (in Microsoft.Data.Schema.ScriptDom.Sql.dll)
Syntax
'Declaration
Public Sub GenerateScript ( _
scriptFragment As TSqlFragment, _
writer As TextWriter _
)
public void GenerateScript(
TSqlFragment scriptFragment,
TextWriter writer
)
public:
void GenerateScript(
TSqlFragment^ scriptFragment,
TextWriter^ writer
)
member GenerateScript :
scriptFragment:TSqlFragment *
writer:TextWriter -> unit
public function GenerateScript(
scriptFragment : TSqlFragment,
writer : TextWriter
)
Parameters
- scriptFragment
Type: Microsoft.Data.Schema.ScriptDom.Sql.TSqlFragment
The fragment of script to generate tokens for
- writer
Type: System.IO.TextWriter
A text writer to write the text to
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.