Metodo EnumScript (ScriptingOptions)

Restituisce un oggetto IEnumerable<string> con lo script per gli oggetti passati.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Function EnumScript ( _
    scriptingOptions As ScriptingOptions _
) As IEnumerable(Of String)
'Utilizzo
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>

Valore restituito

Tipo: System.Collections.Generic. . :: . .IEnumerable< (Of < ( <'String> ) > ) >
Interfaccia [T:System.Collections.Generic.IEnumerable<T>].

Osservazioni

The scriptingOptions parameter is used to determine whether the schema and the data are included in the script.