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 네임스페이스