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)


Protected Overridable Function ShouldCancelCore ( _
    granularity As IterationGranularity _
) As Boolean
Dim granularity As IterationGranularity
Dim returnValue As Boolean

returnValue = Me.ShouldCancelCore(granularity)
protected virtual bool ShouldCancelCore(
    IterationGranularity granularity


Return Value

Type: System.Boolean
Returns Boolean.


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.

See Also


ContentIterator Class

ContentIterator Members

Microsoft.Office.Server.Utilities Namespace