ScriptingOptions.Subtraction 연산자
Creates a set of scripting options by performing an subtraction operation on a ScriptingOptions object and a ScriptOption object.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)
구문
‘선언
Public Shared Operator - ( _
options As ScriptingOptions, _
scriptOption As ScriptOption _
) As ScriptingOptions
‘사용 방법
Dim options As ScriptingOptions
Dim scriptOption As ScriptOption
Dim returnValue As ScriptingOptions
returnValue = (options - scriptOption)
public static ScriptingOptions operator -(
ScriptingOptions options,
ScriptOption scriptOption
)
public:
static ScriptingOptions^ operator -(
ScriptingOptions^ options,
ScriptOption^ scriptOption
)
static let inline(-)
options:ScriptingOptions *
scriptOption:ScriptOption : ScriptingOptions
Jscript는 오버로드된 연산자의 사용을 지원하지만 새로운 오버로드된 연산자 선언은 지원하지 않습니다.
매개 변수
- options
유형: Microsoft.SqlServer.Management.Smo.ScriptingOptions
A ScriptingOptions object that specifies the scripting options.
- scriptOption
유형: Microsoft.SqlServer.Management.Smo.ScriptOption
A ScriptOption object that specifies the script option to be subtracted from the options specified by the options parameter..
반환 값
유형: Microsoft.SqlServer.Management.Smo.ScriptingOptions
A ScriptingOptions object value that specifies a set of scripting options after the subtraction.
예
The following code example creates a new set of script options by subtracting a ScriptOption value from an existing ScriptingOptions object.
PowerShell
$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions
$scOps.NoXmlNamespaces = $TRUE
$scOps.Permissions = $TRUE
$scOps2 = [Microsoft.SqlServer.Management.Smo.ScriptingOptions]::op_Subtraction($scOps, [Microsoft.SqlServer.Management.Smo.ScriptOption]::Permissions)
참고 항목
참조
Microsoft.SqlServer.Management.Smo 네임스페이스