Partager via


EnumAlerts méthode

Enumerates a list of Agent alerts that cause automated execution of the referenced job.

Espace de noms :  Microsoft.SqlServer.Management.Smo.Agent
Assembly :  Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Function EnumAlerts As DataTable
'Utilisation
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

Valeur de retour

Type : System.Data. . :: . .DataTable
A DataTable object value that contains a table of information about the alerts that cause automated execution of the job.