SessionEndingEventArgs.Cancel 属性

定义

获取或设置一个值,该值指示是否取消用户请求以结束会话。Gets or sets a value indicating whether to cancel the user request to end the session.

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 取消用户请求以结束会话;否则为 falsetrue to cancel the user request to end the session; otherwise, false.

注解

当设置为true时, 此属性请求会话继续运行。When set to true, this property requests that the session continue to run. 它不保证会话不会结束。It provides no guarantee that the session will not end.

适用于