ScriptingOptions.AgentNotify Property
Gets or sets the Boolean property that specifies whether to include notifications for any SQL Server Agent alerts that are in the script.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Property Value
Type: System.BooleanA Boolean value that specifies whether to include notifications for any SQL Server Agent alerts that are in the script.If True, SQL Server Agent alert notifications are scripted. Otherwise, False (default).