menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LockShareViolationException - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class LockShareViolationException

    This exception should be thrown when lock or share violation has occured. Usually this happens when user tries to create storage on file opened by somebody else.

    Inheritance
    System.Object
    System.Exception
    System.ApplicationException
    LockShareViolationException
    Implements
    System.Runtime.Serialization.ISerializable
    System.Runtime.InteropServices._Exception
    Inherited Members
    System.Exception.Data
    System.Exception.GetBaseException()
    System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    System.Exception.GetType()
    System.Exception.HelpLink
    System.Exception.HResult
    System.Exception.InnerException
    System.Exception.Message
    System.Exception.SerializeObjectState
    System.Exception.Source
    System.Exception.StackTrace
    System.Exception.TargetSite
    System.Exception.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Syncfusion.CompoundFile.DocIO
    Assembly: Syncfusion.DocIO.Base.dll
    Syntax
    public class LockShareViolationException : ApplicationException, ISerializable, _Exception

    Constructors

    LockShareViolationException()

    Initializes a new instance of the class with default error message.

    Declaration
    public LockShareViolationException()

    LockShareViolationException(String)

    Initializes a new instance of the class with a specified error message.

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

    Error message.

    LockShareViolationException(String, Exception)

    Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.

    Declaration
    public LockShareViolationException(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. If the innerException parameter is not a NULL reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

    Implements

    System.Runtime.Serialization.ISerializable
    System.Runtime.InteropServices._Exception
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved