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
)
参数
- filter
类型:Microsoft.SqlServer.Management.Smo.Agent. . :: . .JobHistoryFilter
A JobHistoryFilter object value that is used to specify constraints that restrict the job records that are purged.