EnumScript 方法 (ScriptingOptions)
Returns an IEnumerable<string> object that has the script for the passed objects.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Function EnumScript ( _
scriptingOptions As ScriptingOptions _
) As IEnumerable(Of String)
'用途
Dim instance As Table
Dim scriptingOptions As ScriptingOptions
Dim returnValue As IEnumerable(Of String)
returnValue = instance.EnumScript(scriptingOptions)
public IEnumerable<string> EnumScript(
ScriptingOptions scriptingOptions
)
public:
IEnumerable<String^>^ EnumScript(
ScriptingOptions^ scriptingOptions
)
member EnumScript :
scriptingOptions:ScriptingOptions -> IEnumerable<string>
public function EnumScript(
scriptingOptions : ScriptingOptions
) : IEnumerable<String>
參數
- scriptingOptions
型別:Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
ScriptingOptions
傳回值
型別:System.Collections.Generic. . :: . .IEnumerable< (Of < ( <'String> ) > ) >
[T:System.Collections.Generic.IEnumerable<T>] Interface.
備註
The scriptingOptions parameter is used to determine whether the schema and the data are included in the script.