共用方式為


EnumAlerts 方法

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

命名空間:  Microsoft.SqlServer.Management.Smo.Agent
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Function EnumAlerts As DataTable
'用途
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

傳回值

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