语言

SessionEndingEventArgs.Cancel 属性

定义

获取或设置一个值,该值指示是否取消用户请求以结束会话。

public:
 property bool Cancel { bool get(); void set(bool value); };
public bool Cancel { get; set; }
member this.Cancel : bool with get, set
Public Property Cancel As Boolean

属性值

true 取消用户请求以结束会话;否则,为 false.

注解

true设置为该属性时,此属性请求会话继续运行。 它不保证会话不会结束。

适用于