Class EPiServerCancelException
An exception class that indicates that an action has been cancelled, for instance by an event handler.
Implements
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class EPiServerCancelException : EPiServerException, ISerializable, _ExceptionConstructors
EPiServerCancelException()
Initializes a new instance of the EPiServerCancelException class.
Declaration
public EPiServerCancelException()EPiServerCancelException(SerializationInfo, StreamingContext)
Initializes a new instance of the AccessDeniedException class with serialized data.
Declaration
protected EPiServerCancelException(SerializationInfo info, StreamingContext context)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | The object that holds the serialized object data. | 
| System.Runtime.Serialization.StreamingContext | context | The contextual information about the source or destination. | 
EPiServerCancelException(String)
Initializes a new instance of the EPiServerCancelException class.
Declaration
public EPiServerCancelException(string message)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | message | The message. | 
EPiServerCancelException(String, ContentEventArgs)
Initializes a new instance of the EPiServerCancelException class.
Declaration
public EPiServerCancelException(string message, ContentEventArgs contentArgs)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | message | The message. | 
| ContentEventArgs | contentArgs | The ContentEventArgs instance containing the event data. | 
EPiServerCancelException(String, PageEventArgs)
Initializes a new instance of the EPiServerCancelException class.
Declaration
public EPiServerCancelException(string message, PageEventArgs pageArgs)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | message | The message. | 
| PageEventArgs | pageArgs | The PageEventArgs instance containing the event data. | 
EPiServerCancelException(String, Exception)
Initializes the new instance of EPiServerCancelException
Declaration
public EPiServerCancelException(string message, Exception innerException)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | message | The error message that explains the reason for the exception. | 
| System.Exception | innerException | The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. | 
Properties
ContentArgs
Gets the content event arguments that might contain information why the action was cancelled.
Declaration
public ContentEventArgs ContentArgs { get; set; }Property Value
| Type | Description | 
|---|---|
| ContentEventArgs | The content event arguments. | 
PageArgs
Gets the page event arguments that might contain information why the action was cancelled.
Declaration
[Obsolete("Use ContentArgs instead")]
public PageEventArgs PageArgs { get; set; }Property Value
| Type | Description | 
|---|---|
| PageEventArgs | The page event arguments. | 
