你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PartitionInitializingEventArgs.CancellationToken Property

Definition

A CancellationToken indicate that the processor is requesting that the handler stop its activities. If this token is requesting cancellation, then either the processor is attempting to shutdown or ownership of the partition has changed.

public System.Threading.CancellationToken CancellationToken { get; }
member this.CancellationToken : System.Threading.CancellationToken
Public ReadOnly Property CancellationToken As CancellationToken

Property Value

Remarks

The handler for initialization has responsibility for deciding whether or not to honor the cancellation request. If the application chooses not to do so, the processor will wait for the handler to complete before taking further action.

Applies to