共用方式為


Add 方法

加入兩個 ScriptOption 物件,以建立 ScriptOptions 物件。

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Shared Function Add ( _
    leftOption As ScriptOption, _
    rightOption As ScriptOption _
) As ScriptingOptions
'用途
Dim leftOption As ScriptOption
Dim rightOption As ScriptOption
Dim returnValue As ScriptingOptions

returnValue = ScriptOption.Add(leftOption, _
    rightOption)
public static ScriptingOptions Add(
    ScriptOption leftOption,
    ScriptOption rightOption
)
public:
static ScriptingOptions^ Add(
    ScriptOption^ leftOption, 
    ScriptOption^ rightOption
)
static member Add : 
        leftOption:ScriptOption * 
        rightOption:ScriptOption -> ScriptingOptions 
public static function Add(
    leftOption : ScriptOption, 
    rightOption : ScriptOption
) : ScriptingOptions