共用方式為


Scripter.EnumScript 方法 (array<SqlSmoObject )

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

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Function EnumScript ( _
    objects As SqlSmoObject() _
) As IEnumerable(Of String)
'用途
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>

參數

傳回值

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

備註

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

請參閱

參考

Scripter 類別

EnumScript 多載

Microsoft.SqlServer.Management.Smo 命名空間