Job.EnumAlerts Method
Enumerates a list of Agent alerts that cause automated execution of the referenced job.
Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Function EnumAlerts As DataTable
'Usage
Dim instance As Job
Dim returnValue As DataTable
returnValue = instance.EnumAlerts()
public DataTable EnumAlerts()
public:
DataTable^ EnumAlerts()
member EnumAlerts : unit -> DataTable
public function EnumAlerts() : DataTable
Return Value
Type: System.Data.DataTable
A DataTable object value that contains a table of information about the alerts that cause automated execution of the job.
See Also