Metodo Remove
Removes a ScriptOption object from the ScriptingOptions object.
Spazio dei nomi Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Sintassi
'Dichiarazione
Public Function Remove ( _
scriptOption As ScriptOption _
) As ScriptingOptions
'Utilizzo
Dim instance As ScriptingOptions
Dim scriptOption As ScriptOption
Dim returnValue As ScriptingOptions
returnValue = instance.Remove(scriptOption)
public ScriptingOptions Remove(
ScriptOption scriptOption
)
public:
ScriptingOptions^ Remove(
ScriptOption^ scriptOption
)
member Remove :
scriptOption:ScriptOption -> ScriptingOptions
public function Remove(
scriptOption : ScriptOption
) : ScriptingOptions
Parametri
- scriptOption
Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ScriptOption
A ScriptOption object to be removed from the ScriptingOptions object.
Valore restituito
Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
A ScriptingOptions object that does not contain the removed ScriptOption object.
Esempi
The following code example removes a script option.
Visual Basic
Dim scOps As New ScriptingOptions()
scOps.WithDependencies = true
scOps.Remove(ScriptOption.WithDependencies)
PowerShell
$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions
$scOps.WithDependencies = $TRUE
$scOps.Remove([Microsoft.SqlServer.Management.Smo.ScriptOption]::WithDependencies)
Vedere anche