SqlScriptGenerator.GenerateScript Method (IScriptFragment, 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 Overrides Sub GenerateScript ( _
scriptFragment As IScriptFragment, _
writer As TextWriter _
)
public override void GenerateScript(
IScriptFragment scriptFragment,
TextWriter writer
)
public:
virtual void GenerateScript(
IScriptFragment^ scriptFragment,
TextWriter^ writer
) override
abstract GenerateScript :
scriptFragment:IScriptFragment *
writer:TextWriter -> unit
override GenerateScript :
scriptFragment:IScriptFragment *
writer:TextWriter -> unit
public override function GenerateScript(
scriptFragment : IScriptFragment,
writer : TextWriter
)
Parameters
- scriptFragment
Type: Microsoft.Data.Schema.ScriptDom.IScriptFragment
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.