Condividi tramite


Metodo PurgeJobHistory (JobHistoryFilter)

Removes all logged records of SQL Server Agent jobs as specified by a filter.

Spazio dei nomi:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Sub PurgeJobHistory ( _
    filter As JobHistoryFilter _
)
'Utilizzo
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
)

Parametri