ScriptingOptions.Add ScriptingOptions.Add Method

정의

ScriptingOption을 추가합니다. Adds a ScriptingOption.

오버로드

Add(ScriptOption) Add(ScriptOption)

추가 ScriptOption 개체는 ScriptingOptions 개체입니다. Adds a ScriptOption object to the ScriptingOptions object.

Add(ScriptingOptions, ScriptOption) Add(ScriptingOptions, ScriptOption)

지정된 ScriptOptionScriptingOptions 개체를 ScriptingOptions에 추가합니다. Adds the specified ScriptOption and ScriptingOptions objects to the ScriptingOptions.

Add(ScriptOption) Add(ScriptOption)

추가 ScriptOption 개체는 ScriptingOptions 개체입니다. Adds a ScriptOption object to the ScriptingOptions object.

public:
 Microsoft::SqlServer::Management::Smo::ScriptingOptions ^ Add(Microsoft::SqlServer::Management::Smo::ScriptOption ^ scriptOption);
public Microsoft.SqlServer.Management.Smo.ScriptingOptions Add (Microsoft.SqlServer.Management.Smo.ScriptOption scriptOption);
매개 변수
scriptOption
ScriptOption ScriptOption

ScriptOption 개체에 추가할 ScriptingOptions 개체입니다. A ScriptOption object that is to be added to the ScriptingOptions object.

반환

A ScriptingOptions 개체가 추가 된 있는 ScriptOption 개체입니다. A ScriptingOptions object that contains the added ScriptOption object.

예제

다음 코드 예제에서는 ScriptingOptions 개체에 새 개의 ScriptOption를 추가합니다.The following code example adds a new ScriptOption to the ScriptingOptions object.

Visual BasicVisual Basic

Dim scOps As New ScriptingOptions()  
scOps.Add(ScriptOption.WithDependencies)  

PowerShellPowerShell

$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions  
$scOps.Add([Microsoft.SqlServer.Management.Smo.ScriptOption]::WithDependencies)  

Add(ScriptingOptions, ScriptOption) Add(ScriptingOptions, ScriptOption)

지정된 ScriptOptionScriptingOptions 개체를 ScriptingOptions에 추가합니다. Adds the specified ScriptOption and ScriptingOptions objects to the ScriptingOptions.

public:
 static Microsoft::SqlServer::Management::Smo::ScriptingOptions ^ Add(Microsoft::SqlServer::Management::Smo::ScriptingOptions ^ options, Microsoft::SqlServer::Management::Smo::ScriptOption ^ scriptOption);
public static Microsoft.SqlServer.Management.Smo.ScriptingOptions Add (Microsoft.SqlServer.Management.Smo.ScriptingOptions options, Microsoft.SqlServer.Management.Smo.ScriptOption scriptOption);
매개 변수
options
ScriptingOptions ScriptingOptions

ScriptOption 개체에 추가할 ScriptingOptions 개체입니다. A ScriptOption object that is to be added to the ScriptingOptions object.

scriptOption
ScriptOption ScriptOption

ScriptingOptions 개체에 추가할 ScriptingOptions 개체입니다. A ScriptingOptions object that is to be added to the ScriptingOptions object.

반환

A ScriptingOptions 개체가 추가 된 있는 ScriptOptionScriptingOptions 개체입니다. A ScriptingOptions object that contains the added ScriptOption and ScriptingOptions objects.

적용 대상