Scripter.EnumScript Scripter.EnumScript Scripter.EnumScript Method

Definition

Returns an IEnumerable<script> object containing a script

Overloads

EnumScript(Urn[]) EnumScript(Urn[]) EnumScript(Urn[])

Returns an IEnumerable <script> interface.

EnumScript(SqlSmoObject[]) EnumScript(SqlSmoObject[]) EnumScript(SqlSmoObject[])

Returns an IEnumerable<script> object that contains a script.

EnumScript(UrnCollection) EnumScript(UrnCollection) EnumScript(UrnCollection)

Returns an IEnumerable <script> interface.

EnumScript(Urn[]) EnumScript(Urn[]) EnumScript(Urn[])

Returns an IEnumerable <script> interface.

public:
 System::Collections::Generic::IEnumerable<System::String ^> ^ EnumScript(cli::array <Microsoft::SqlServer::Management::Sdk::Sfc::Urn ^> ^ urns);
public System.Collections.Generic.IEnumerable<string> EnumScript (Microsoft.SqlServer.Management.Sdk.Sfc.Urn[] urns);
Public Function EnumScript (urns As Urn()) As IEnumerable(Of String)
Parameters
urns
Urn[]

An array of Urn objects.

Returns

An IEnumerable<T> interface that exposes an enumerator that supports a simple iteration over the script. This script contains only the Urn objects.

Remarks

The return value contains data if the ScriptData property has been set to True before this method is run.

EnumScript(SqlSmoObject[]) EnumScript(SqlSmoObject[]) EnumScript(SqlSmoObject[])

Returns an IEnumerable&lt;script&gt; object that contains a script.

public:
 System::Collections::Generic::IEnumerable<System::String ^> ^ EnumScript(cli::array <Microsoft::SqlServer::Management::Smo::SqlSmoObject ^> ^ objects);
public System.Collections.Generic.IEnumerable<string> EnumScript (Microsoft.SqlServer.Management.Smo.SqlSmoObject[] objects);
Public Function EnumScript (objects As SqlSmoObject()) As IEnumerable(Of String)
Parameters
objects
SqlSmoObject[]

An array of SqlSmoObject

Returns

An IEnumerable interface that exposes an enumerator that supports a simple iteration over the script. The script contains the objects in the array of SqlSmoObject and the corresponding Urn.

Remarks

The return value contains data if the ScriptData property has been set to True before this method is run.

EnumScript(UrnCollection) EnumScript(UrnCollection) EnumScript(UrnCollection)

Returns an IEnumerable &lt;script&gt; interface.

public:
 System::Collections::Generic::IEnumerable<System::String ^> ^ EnumScript(Microsoft::SqlServer::Management::Smo::UrnCollection ^ list);
public System.Collections.Generic.IEnumerable<string> EnumScript (Microsoft.SqlServer.Management.Smo.UrnCollection list);
Public Function EnumScript (list As UrnCollection) As IEnumerable(Of String)
Parameters
Returns

An IEnumerable<T> interface that exposes an enumerator that supports a simple iteration over the script. This script contains only the Urn objects.

Remarks

The return value contains data if the ScriptData property has been set to True before this method is run.

Applies to