Addition Operador
Creates a set of scripting options by performing an addition operation on a ScriptingOptions object and a ScriptOption object.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
Public Shared Operator + ( _
options As ScriptingOptions, _
scriptOption As ScriptOption _
) As ScriptingOptions
'Uso
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 admite el uso de operadores sobrecargados, pero no la declaración de otros nuevos.
Parámetros
- options
Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
A ScriptingOptions object that specifies the scripting options.
- scriptOption
Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ScriptOption
A ScriptOption object that specifies the script option.
Valor devuelto
Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
A ScriptingOptions object value that specifies a set of scripting options after the addition.
Ejemplos
The following code example creates a new set of script options by adding a ScriptOption value to 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_Addition($scOps, [Microsoft.SqlServer.Management.Smo.ScriptOption]::WithDependencies)
Vea también