This class provides a boolean argument to control the optional cancellation of an action during event processing. Unlike most event argument classes which simply deliver information to the subscriber, this argument class allows two-way communication. Specifically, a recipient of an event notification with an instance of this argument class may optionally set the Cancel property to true, thereby communicating to the source of the event that the action should be cancelled.
System EventArgs
Cognex.Vision EventArgs
Cognex.Vision CancelEventArgs
Cognex.Vision CancelChangingStringEventArgs
Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.25.1.0
The CancelEventArgs type exposes the following members.
| Name | Description | |
|---|---|---|
| CancelEventArgs | Construct an instance of this class with the value of Cancel set by default to false. | |
| CancelEventArgs(Boolean) | Construct an instance of this class and set the Cancel property to the supplied value. |
| Name | Description | |
|---|---|---|
| Equals | Compares the equality of this object with another. (Overrides EventArgs Equals(Object).) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Returns the hash code of this object. (Overrides EventArgs GetHashCode .) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a human readable string that represents the object. |
| Name | Description | |
|---|---|---|
| Equality | Compares the equality of two CancelEventArgs objects. | |
| Inequality | Compares the inequality of two CancelEventArgs objects. |
| Name | Description | |
|---|---|---|
| _interopHandle |
| Name | Description | |
|---|---|---|
| Cancel | Get Get the value of the Cancel property. | |
| Handle | (Overrides EventArgs Handle.) |