共用方式為


PurgeJobHistory 方法 (JobHistoryFilter)

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

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

語法

'宣告
Public Sub PurgeJobHistory ( _
    filter As JobHistoryFilter _
)
'用途
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
)

參數