Search Results for

    Show / Hide Table of Contents

    Class UserCancelledException

    Exception thrown to indicate that the user has explicitly requested an operation to be aborted.

    Inheritance
    System.Object
    System.Exception
    UserCancelledException
    Implements
    System.Runtime.Serialization.ISerializable
    System.Runtime.InteropServices._Exception
    Inherited Members
    System.Exception.GetBaseException()
    System.Exception.ToString()
    System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    System.Exception.GetType()
    System.Exception.Message
    System.Exception.Data
    System.Exception.InnerException
    System.Exception.TargetSite
    System.Exception.StackTrace
    System.Exception.HelpLink
    System.Exception.Source
    System.Exception.HResult
    System.Exception.SerializeObjectState
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.MemberwiseClone()
    Namespace: Sdl.FileTypeSupport.Framework
    Assembly: Sdl.FileTypeSupport.Framework.Core.dll
    Syntax
    public class UserCancelledException : Exception, ISerializable, _Exception
    Remarks

    Applications can use this exception to handle user interaction in event handlers and other delegates. If the user cancels the operation during a callback the application can throw this exception from the callback and handle it separate from other exception types in the top-level originating call.

    This exception is explicitly NOT derived from FileTypeSupportException, so that it does not get caught in regular exception handlers for file type support exceptions.

    Constructors

    UserCancelledException()

    Cancel without message.

    Declaration
    public UserCancelledException()

    UserCancelledException(SerializationInfo, StreamingContext)

    Protected constructor used for de-serialization.

    Declaration
    protected UserCancelledException(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info
    System.Runtime.Serialization.StreamingContext context

    UserCancelledException(String)

    Cancel with a message.

    Declaration
    public UserCancelledException(string message)
    Parameters
    Type Name Description
    System.String message

    UserCancelledException(String, Exception)

    Cancel with a message and a related exception.

    Declaration
    public UserCancelledException(string message, Exception inner)
    Parameters
    Type Name Description
    System.String message
    System.Exception inner

    Implements

    System.Runtime.Serialization.ISerializable
    System.Runtime.InteropServices._Exception

    On this page

    • Constructors
      • UserCancelledException()
      • UserCancelledException(SerializationInfo, StreamingContext)
      • UserCancelledException(String)
      • UserCancelledException(String, Exception)
    • Implements
    Back to top Generated by DocFX