WorkItemTimerJobState.Dispose Method
Cleans up resources held by the work item state.
Namespace: Microsoft.Office.Server.Utilities
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Sub Dispose
'Usage
Dim instance As WorkItemTimerJobState
instance.Dispose()
public void Dispose()
Remarks
Dispose must be called explicitly to prevent memory problems. This is particularly true for timer jobs, since the process running the timer jobs is long-lived.