Scripter.EnumScriptWithList 方法 (DependencyCollection)
Creates a linear Transact-SQL script based on a dependency collection.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Function EnumScriptWithList ( _
depList As DependencyCollection _
) As IEnumerable(Of String)
'用途
Dim instance As Scripter
Dim depList As DependencyCollection
Dim returnValue As IEnumerable(Of String)
returnValue = instance.EnumScriptWithList(depList)
public IEnumerable<string> EnumScriptWithList(
DependencyCollection depList
)
public:
IEnumerable<String^>^ EnumScriptWithList(
DependencyCollection^ depList
)
member EnumScriptWithList :
depList:DependencyCollection -> IEnumerable<string>
public function EnumScriptWithList(
depList : DependencyCollection
) : IEnumerable<String>
參數
- depList
型別:Microsoft.SqlServer.Management.Smo.DependencyCollection
DependencyCollection object
傳回值
型別:System.Collections.Generic.IEnumerable<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.
備註
The return value contains data if the ScriptData property has been set to True before this method is run.