Share via


Méthode EnumScriptWithList (SqlSmoObject[])

Creates a linear Transact-SQL script based on an array of SqlSmoObjects.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Function EnumScriptWithList ( _
    objects As SqlSmoObject() _
) As IEnumerable(Of String)
'Utilisation
Dim instance As Scripter
Dim objects As SqlSmoObject()
Dim returnValue As IEnumerable(Of String)

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

Paramètres

Valeur de retour

Type : System.Collections.Generic. . :: . .IEnumerable< (Of < ( <'String> ) > ) >
An IEnumerable interface that exposes an enumerator that supports a simple iteration over a script. This script contains the SqlSmoObject and the DependencyCollection for each of those objects.

Notes

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