Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ScriptingOptions.Remove Method (ScriptOption)


Removes a ScriptOption object from the ScriptingOptions object.

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

public ScriptingOptions Remove(
	ScriptOption scriptOption


Type: Microsoft.SqlServer.Management.Smo.ScriptOption

A ScriptOption object to be removed from the ScriptingOptions object.

Return Value

Type: Microsoft.SqlServer.Management.Smo.ScriptingOptions

A ScriptingOptions object that does not contain the removed ScriptOption object.

The following code example removes a script option.

Visual Basic

Dim scOps As New ScriptingOptions()
scOps.WithDependencies = true


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