Provides data for a cancelable event.
Assembly: System.Web (in System.Web.dll)
Gets or sets a value indicating whether the event should be canceled.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
A cancelable event is raised when a component is about to perform an action that can be canceled, such as logging on to a Web site.
The Cancel property to indicate whether the event should be canceled. A object is used with controls that have cancelable actions, such as the Login control, the CreateUserWizard control, and the PasswordRecovery control.class provides the
The following code example uses the LoggingIn event to ensure that the user has entered a well-formed e-mail address in the UserName property. If not, the LoggingIn event handler cancels the logon attempt by setting the Cancel property of the object to true.Then the error message specified in the InstructionText property is displayed.
The following is the .aspx file that can be used to run the preceding example.
Available since 2.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.