PurgeJobHistory Método (JobHistoryFilter)
Removes all logged records of SQL Server Agent jobs as specified by a filter.
Espacio de nombres: Microsoft.SqlServer.Management.Smo.Agent
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
Public Sub PurgeJobHistory ( _
filter As JobHistoryFilter _
)
'Uso
Dim instance As JobServer
Dim filter As JobHistoryFilter
instance.PurgeJobHistory(filter)
public void PurgeJobHistory(
JobHistoryFilter filter
)
public:
void PurgeJobHistory(
JobHistoryFilter^ filter
)
member PurgeJobHistory :
filter:JobHistoryFilter -> unit
public function PurgeJobHistory(
filter : JobHistoryFilter
)
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.