ScriptingOptions.AgentJobId Property
SQL Server 2012
Gets or sets the Boolean property that specifies whether to include SQL Server Agent job ID values for alert objects in the script.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)