Partilhar via


Construtor ScriptingOptions (ScriptOption)

Initializes a new instance of the ScriptingOptions class based on the specified ScriptOption object, based on the specified script option.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Sub New ( _
    so As ScriptOption _
)
'Uso
Dim so As ScriptOption 

Dim instance As New ScriptingOptions(so)
public ScriptingOptions(
    ScriptOption so
)
public:
ScriptingOptions(
    ScriptOption^ so
)
new : 
        so:ScriptOption -> ScriptingOptions
public function ScriptingOptions(
    so : ScriptOption
)

Parâmetros

Exemplos

The following code example creates a new instance of the ScriptingOptions class.

Visual Basic

Dim scrp As New ScriptingOptions(ScriptOption.WithDependencies)

PowerShell

$scrp = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions([Microsoft.SqlServer.Management.Smo.ScriptOption]::WithDependencies)

Consulte também

Referência

ScriptingOptions Classe

Sobrecarregado ScriptingOptions

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Gerando scripts