ScriptingOptions.AgentAlertJob プロパティ
警告オブジェクトに対する SQL Server エージェント ジョブ名をスクリプトに含めるかどうかを示す Boolean プロパティを取得または設定します。
名前空間: Microsoft.SqlServer.Management.Smo
アセンブリ: Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)
構文
'宣言
Public Property AgentAlertJob As Boolean
Get
Set
'使用
Dim instance As ScriptingOptions
Dim value As Boolean
value = instance.AgentAlertJob
instance.AgentAlertJob = value
public bool AgentAlertJob { get; set; }
public:
property bool AgentAlertJob {
bool get ();
void set (bool value);
}
member AgentAlertJob : bool with get, set
function get AgentAlertJob () : boolean
function set AgentAlertJob (value : boolean)
プロパティ値
型: System.Boolean
SQL Server エージェントの警告とジョブを含めるかどうかを示す Boolean 値です。 True の場合、警告とジョブがスクリプトに含まれます。False (既定値) の場合、警告トークンは置き換えられません。
使用例
次のコード例では、警告とジョブをスクリプトに含めるように指定します。
Visual Basic
Dim scOps As New ScriptingOptions()
scOps.AgentAlertJob = true
PowerShell
$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions
$scOps.AgentAlertJob = $TRUE
関連項目
参照
Microsoft.SqlServer.Management.Smo 名前空間