Search Results for

    Show / Hide Table of Contents

    Class InvalidEditOperationException

    Exception thrown by API clients handling the EditOperationCompleting event to prevent interactive editing operations from completing.

    Inheritance
    System.Object
    System.Exception
    ChangeNotAllowedException
    InvalidEditOperationException
    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.DesktopEditor.EditorApi
    Assembly: Sdl.DesktopEditor.EditorApi.dll
    Syntax
    public class InvalidEditOperationException : ChangeNotAllowedException, ISerializable, _Exception
    Remarks

    You can throw this exception (or one derived from it) in an event handler to the EditOperationCompleting in order to explicitly prevent an edit operation attempted by the user. The message you pass in this exception will in that case be passed to the AfterEditOperationAborted event, and may be shown to the user to explain why the edit was not permitted.

    Constructors

    InvalidEditOperationException()

    Prevent edit without explanation.

    Declaration
    public InvalidEditOperationException()

    InvalidEditOperationException(SerializationInfo, StreamingContext)

    Constructor used in serialization.

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

    InvalidEditOperationException(String, String)

    Prevent edit with message explaining why the edit is not permitted.

    Declaration
    public InvalidEditOperationException(string source, string message)
    Parameters
    Type Name Description
    System.String source

    name of the component that generates the execption

    System.String message

    InvalidEditOperationException(String, String, Exception)

    mesage and inner exception

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

    name of the component that generates the execption

    System.String message
    System.Exception inner

    Implements

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

    Extension Methods

    WindowsControlUtils.ForWindowFromFrameworkElement(Object, Action<Window>)

    On this page

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