Condividi tramite


Scripter.Script Method

Definition

Overloads

Script(Urn[])

Returns a StringCollection object with the script for the passed objects. This method throws an error if ScriptData is true

Script(SqlSmoObject[])

Returns a StringCollection object with the script for the passed objects. This method throws an error if ScriptData is true

Script(UrnCollection)

Returns a StringCollection object with the script for the passed objects. This method throws an error if ScriptData is true

Script(Urn[])

Returns a StringCollection object with the script for the passed objects. This method throws an error if ScriptData is true

public System.Collections.Specialized.StringCollection Script (Microsoft.SqlServer.Management.Sdk.Sfc.Urn[] urns);
member this.Script : Microsoft.SqlServer.Management.Sdk.Sfc.Urn[] -> System.Collections.Specialized.StringCollection
Public Function Script (urns As Urn()) As StringCollection

Parameters

urns
Urn[]

Returns

Exceptions

If Options.ScriptData is true

Applies to

Script(SqlSmoObject[])

Returns a StringCollection object with the script for the passed objects. This method throws an error if ScriptData is true

public System.Collections.Specialized.StringCollection Script (Microsoft.SqlServer.Management.Smo.SqlSmoObject[] objects);
member this.Script : Microsoft.SqlServer.Management.Smo.SqlSmoObject[] -> System.Collections.Specialized.StringCollection
Public Function Script (objects As SqlSmoObject()) As StringCollection

Parameters

objects
SqlSmoObject[]

Returns

Exceptions

If Options.ScriptData is true

Applies to

Script(UrnCollection)

Returns a StringCollection object with the script for the passed objects. This method throws an error if ScriptData is true

public System.Collections.Specialized.StringCollection Script (Microsoft.SqlServer.Management.Smo.UrnCollection list);
member this.Script : Microsoft.SqlServer.Management.Smo.UrnCollection -> System.Collections.Specialized.StringCollection
Public Function Script (list As UrnCollection) As StringCollection

Parameters

Returns

Exceptions

If Options.ScriptData is true

Applies to