다음을 통해 공유


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
)

매개 변수

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)