Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ScriptingOptions Constructor (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 (in Microsoft.SqlServer.Smo.dll)

public ScriptingOptions(
	ScriptOption so


Type: Microsoft.SqlServer.Management.Smo.ScriptOption

A ScriptOption object value that specifies the script options.

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

Visual Basic

Dim scrp As New ScriptingOptions(ScriptOption.WithDependencies)


$scrp = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions([Microsoft.SqlServer.Management.Smo.ScriptOption]::WithDependencies)
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft