Table.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>

参数

返回值

类型:System.Collections.Generic.IEnumerable<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.

请参阅

参考

Table 类

EnumScript 重载

Microsoft.SqlServer.Management.Smo 命名空间