Share via


SfcTsqlProcFormatter.GenerateScript Method (SfcInstance, IEnumerable<SfcTsqlProcFormatter.RuntimeArg>, Boolean)

Do not reference this member directly in your code. It supports the SQL Server infrastructure.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Function GenerateScript ( _
    sfcObject As SfcInstance, _
    runtimeArgs As IEnumerable(Of SfcTsqlProcFormatter..::..RuntimeArg), _
    declareArguments As Boolean _
) As String
'Usage
Dim instance As SfcTsqlProcFormatter
Dim sfcObject As SfcInstance
Dim runtimeArgs As IEnumerable(Of SfcTsqlProcFormatter..::..RuntimeArg)
Dim declareArguments As Boolean
Dim returnValue As String

returnValue = instance.GenerateScript(sfcObject, _
    runtimeArgs, declareArguments)
public string GenerateScript(
    SfcInstance sfcObject,
    IEnumerable<SfcTsqlProcFormatter..::..RuntimeArg> runtimeArgs,
    bool declareArguments
)
public:
String^ GenerateScript(
    SfcInstance^ sfcObject, 
    IEnumerable<SfcTsqlProcFormatter..::..RuntimeArg>^ runtimeArgs, 
    bool declareArguments
)
member GenerateScript : 
        sfcObject:SfcInstance * 
        runtimeArgs:IEnumerable<SfcTsqlProcFormatter..::..RuntimeArg> * 
        declareArguments:bool -> string 
public function GenerateScript(
    sfcObject : SfcInstance, 
    runtimeArgs : IEnumerable<SfcTsqlProcFormatter..::..RuntimeArg>, 
    declareArguments : boolean
) : String

Parameters

  • declareArguments
    Type: System.Boolean
    true to declare arguments; otherwise, false.

Return Value

Type: System.String
The specified script to generate.