Método EnumScript (ScriptingOptions)
Retorna um objeto IEnumerable<string> que tem o script para os objetos passados.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
Public Function EnumScript ( _
scriptingOptions As ScriptingOptions _
) As IEnumerable(Of String)
'Uso
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>
Parâmetros
- scriptingOptions
Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
ScriptingOptions
Valor de retorno
Tipo: System.Collections.Generic. . :: . .IEnumerable< (Of < ( <'String> ) > ) >
Interface [T:System.Collections.Generic.IEnumerable<T>].
Comentários
The scriptingOptions parameter is used to determine whether the schema and the data are included in the script.
Consulte também