Share via


JobServer.EnumJobHistory Method (JobHistoryFilter)

Enumerates a list of job history information.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Function EnumJobHistory ( _
    filter As JobHistoryFilter _
) As DataTable
'Usage
Dim instance As JobServer 
Dim filter As JobHistoryFilter 
Dim returnValue As DataTable 

returnValue = instance.EnumJobHistory(filter)
public DataTable EnumJobHistory(
    JobHistoryFilter filter
)
public:
DataTable^ EnumJobHistory(
    JobHistoryFilter^ filter
)
member EnumJobHistory : 
        filter:JobHistoryFilter -> DataTable
public function EnumJobHistory(
    filter : JobHistoryFilter
) : DataTable

Parameters

Return Value

Type: System.Data.DataTable
A DataTable object value that contains a table of information about SQL Server Agent job history.

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

JobServer Class

EnumJobHistory Overload

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)

sp_help_jobhistory (Transact-SQL)