ScriptingOptions.Remove 方法
Removes a ScriptOption object from the ScriptingOptions object.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Function Remove ( _
scriptOption As ScriptOption _
) As ScriptingOptions
用法
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
参数
- scriptOption
类型:Microsoft.SqlServer.Management.Smo.ScriptOption
A ScriptOption object to be removed from the ScriptingOptions object.
返回值
类型: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.Remove(ScriptOption.WithDependencies)
PowerShell
$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions
$scOps.WithDependencies = $TRUE
$scOps.Remove([Microsoft.SqlServer.Management.Smo.ScriptOption]::WithDependencies)
请参阅
参考
Microsoft.SqlServer.Management.Smo 命名空间