Share via


Scripter.EnumScript Method (array<SqlSmoObject )

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Function EnumScript ( _
    objects As SqlSmoObject() _
) As IEnumerable(Of String)
'Usage
Dim instance As Scripter 
Dim objects As SqlSmoObject()
Dim returnValue As IEnumerable(Of String)

returnValue = instance.EnumScript(objects)
public IEnumerable<string> EnumScript(
    SqlSmoObject[] objects
)
public:
IEnumerable<String^>^ EnumScript(
    array<SqlSmoObject^>^ objects
)
member EnumScript : 
        objects:SqlSmoObject[] -> IEnumerable<string> 
public function EnumScript(
    objects : SqlSmoObject[]
) : IEnumerable<String>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<String>
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.

See Also

Reference

Scripter Class

EnumScript Overload

Microsoft.SqlServer.Management.Smo Namespace