Método JobServer.EnumJobHistory (JobHistoryFilter)
Enumerates a list of job history information.
Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
Public Function EnumJobHistory ( _
filter As JobHistoryFilter _
) As DataTable
'Uso
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
Parâmetros
- filter
Tipo: Microsoft.SqlServer.Management.Smo.Agent.JobHistoryFilter
A JobHistoryFilter object value that is used to specify constraints that restrict the job records that are purged.
Valor de retorno
Tipo: System.Data.DataTable
A DataTable object value that contains a table of information about SQL Server Agent job history.
Exemplos
Agendando tarefas administrativas automáticas no SQL Server Agent
Consulte também
Referência
Namespace Microsoft.SqlServer.Management.Smo.Agent