共用方式為


EnumScriptTransfer 方法

Creates a Transact-SQL command batch script used to transfer database objects or database objects and data to another database instance.

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

語法

'宣告
Public Function EnumScriptTransfer As IEnumerable(Of String)
'用途
Dim instance As Transfer
Dim returnValue As IEnumerable(Of String)

returnValue = instance.EnumScriptTransfer()
public IEnumerable<string> EnumScriptTransfer()
public:
IEnumerable<String^>^ EnumScriptTransfer()
member EnumScriptTransfer : unit -> IEnumerable<string> 
public function EnumScriptTransfer() : IEnumerable<String>

傳回值

型別:System.Collections.Generic. . :: . .IEnumerable< (Of < ( <'String> ) > ) >
An IEnumerable string list interface that contains the script.

備註

EnumScriptTransfer returns a script for the database as an enumerable interface. The returned IEnumerable can be used to iterate through each statement in the resulting script. This method will use ScriptData()()()() to check if data should be included in the generated script.