AdgConnection.IsCanceledException Method
Definition
Namespace: ASNA.DataGate.Client
Assembly: ASNA.QSys.DataGate.Client.dll
bool IsCanceledException(Exception e)
Determines whether the specified exception is due to a cancellation request.
Remarks
This method checks if the cancellation token for the connection is CancellationToken.None.If it is, it returns false, because a cancellation request could not have been made.If the cancellation token is not CancellationToken.None, it calls the IsCanceledExceptionInternal method to check if the specified exception is due to a cancellation request.
bool IsCanceledException(Exception e)
Parameters
| Type | Parameter name | Description | 
|---|---|---|
| Exception | e | The exception to check. | 
Returns
| Type | Description | 
|---|---|
| Boolean | true if the specified exception is due to a cancellation request; otherwise, false. |