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>

参数

返回值

类型: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.

请参阅

参考

Scripter 类

EnumScriptWithList 重载

Microsoft.SqlServer.Management.Smo 命名空间