共用方式為


EnumErrorLogs 方法

Enumerates a list of SQL Server Agent error log information.

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

語法

'宣告
Public Function EnumErrorLogs As DataTable
'用途
Dim instance As JobServer
Dim returnValue As DataTable

returnValue = instance.EnumErrorLogs()
public DataTable EnumErrorLogs()
public:
DataTable^ EnumErrorLogs()
member EnumErrorLogs : unit -> DataTable 
public function EnumErrorLogs() : DataTable

傳回值

型別:System.Data. . :: . .DataTable
A DataTable object value that contains a table of information about SQL Server Agent error logs.