Delen via


ScriptingOptions.Add Method (ScriptingOptions, ScriptOption)

Adds the specified ScriptOption and ScriptingOptions objects to the ScriptingOptions.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Shared Function Add ( _
    options As ScriptingOptions, _
    scriptOption As ScriptOption _
) As ScriptingOptions
'Usage
Dim options As ScriptingOptions 
Dim scriptOption As ScriptOption 
Dim returnValue As ScriptingOptions 

returnValue = ScriptingOptions.Add(options, scriptOption)
public static ScriptingOptions Add(
    ScriptingOptions options,
    ScriptOption scriptOption
)
public:
static ScriptingOptions^ Add(
    ScriptingOptions^ options, 
    ScriptOption^ scriptOption
)
static member Add : 
        options:ScriptingOptions * 
        scriptOption:ScriptOption -> ScriptingOptions
public static function Add(
    options : ScriptingOptions, 
    scriptOption : ScriptOption
) : ScriptingOptions

Parameters

Return Value

Type: Microsoft.SqlServer.Management.Smo.ScriptingOptions
A ScriptingOptions object that contains the added ScriptOption and ScriptingOptions objects.

See Also

Reference

ScriptingOptions Class

Add Overload

Microsoft.SqlServer.Management.Smo Namespace