Partager via


Scripter.ScriptWithList Method

Definition

Overloads

ScriptWithList(Urn[])

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

ScriptWithList(DependencyCollection)

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

ScriptWithList(SqlSmoObject[])

Returns a StringCollection object with the script for the passed objects.

ScriptWithList(UrnCollection)

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

ScriptWithList(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 ScriptWithList (Microsoft.SqlServer.Management.Sdk.Sfc.Urn[] urns);
member this.ScriptWithList : Microsoft.SqlServer.Management.Sdk.Sfc.Urn[] -> System.Collections.Specialized.StringCollection
Public Function ScriptWithList (urns As Urn()) As StringCollection

Parameters

urns
Urn[]

Returns

Exceptions

If Options.ScriptData is true

Applies to

ScriptWithList(DependencyCollection)

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 ScriptWithList (Microsoft.SqlServer.Management.Smo.DependencyCollection depList);
member this.ScriptWithList : Microsoft.SqlServer.Management.Smo.DependencyCollection -> System.Collections.Specialized.StringCollection
Public Function ScriptWithList (depList As DependencyCollection) As StringCollection

Parameters

Returns

Exceptions

If Options.ScriptData is true

Applies to

ScriptWithList(SqlSmoObject[])

Returns a StringCollection object with the script for the passed objects.

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

Parameters

objects
SqlSmoObject[]

Returns

Exceptions

If Options.ScriptData is true

Applies to

ScriptWithList(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 ScriptWithList (Microsoft.SqlServer.Management.Smo.UrnCollection list);
member this.ScriptWithList : Microsoft.SqlServer.Management.Smo.UrnCollection -> System.Collections.Specialized.StringCollection
Public Function ScriptWithList (list As UrnCollection) As StringCollection

Parameters

Returns

Exceptions

If Options.ScriptData is true

Applies to