Edit

Share via


SessionEndingEventArgs.Cancel Property

Definition

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

Property Value

true to cancel the user request to end the session; otherwise, false.

Remarks

When set to true, this property requests that the session continue to run. It provides no guarantee that the session will not end.

Applies to