共用方式為


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 支援多載運算子的使用,但不支援新運算子的宣告。

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
A ScriptingOptions object value that specifies a set of scripting options after the subtraction.

範例

指令碼