Metoda SfcTsqlProcFormatter.GenerateScript (SfcInstance, IEnumerable<SfcTsqlProcFormatter.RuntimeArg>, Boolean)
Nie należy odwoływać się do tego elementu członkowskiego bezpośrednio w kodzie. Obsługuje on infrastrukturę programu SQL Server.
Przestrzeń nazw: Microsoft.SqlServer.Management.Sdk.Sfc
Zestaw: Microsoft.SqlServer.Management.Sdk.Sfc (w Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Składnia
'Deklaracja
Public Function GenerateScript ( _
sfcObject As SfcInstance, _
runtimeArgs As IEnumerable(Of SfcTsqlProcFormatter..::..RuntimeArg), _
declareArguments As Boolean _
) As String
'Użycie
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
Parametry
- sfcObject
Typ: Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
Obiekt SfcInstance.
- runtimeArgs
Typ: System.Collections.Generic.IEnumerable<SfcTsqlProcFormatter.RuntimeArg>
Argumenty podczas procesu.
- declareArguments
Typ: System.Boolean
TRUE zadeklarować argumenty; w przeciwnym razie false.
Wartość zwracana
Typ: System.String
Określonego skryptu do wygenerowania.