Конструктор ScriptingOptions (ScriptOption)
Initializes a new instance of the ScriptingOptions class based on the specified ScriptOption object, based on the specified script option.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Public Sub New ( _
so As ScriptOption _
)
'Применение
Dim so As ScriptOption
Dim instance As New ScriptingOptions(so)
public ScriptingOptions(
ScriptOption so
)
public:
ScriptingOptions(
ScriptOption^ so
)
new :
so:ScriptOption -> ScriptingOptions
public function ScriptingOptions(
so : ScriptOption
)
Параметры
- so
Тип: Microsoft.SqlServer.Management.Smo. . :: . .ScriptOption
A ScriptOption object value that specifies the script options.
Примеры
The following code example creates a new instance of the ScriptingOptions class.
Visual Basic
Dim scrp As New ScriptingOptions(ScriptOption.WithDependencies)
PowerShell
$scrp = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions([Microsoft.SqlServer.Management.Smo.ScriptOption]::WithDependencies)
См. также