ContentIterator.ShouldCancelCore method
Determines whether the iteration should be cancelled at the specified granularity.
Namespace: Microsoft.Office.Server.Utilities
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Protected Overridable Function ShouldCancelCore ( _
granularity As IterationGranularity _
) As Boolean
'Usage
Dim granularity As IterationGranularity
Dim returnValue As Boolean
returnValue = Me.ShouldCancelCore(granularity)
protected virtual bool ShouldCancelCore(
IterationGranularity granularity
)
Parameters
granularity
Type: Microsoft.Office.Server.Utilities.IterationGranularityThe granularity at which the iteration should be cancelled.
Return value
Type: System.Boolean
Returns Boolean.
Remarks
If using ContentIterator directly, the granularity has no effect. It checks if this.Cancel was set to true for the current iteration scope or any scope up the parent hierarchy chain.The TimerJobUtility class does use cancellation scopes.