Class LockShareViolationException
Represents an exception thrown when a lock or share violation occurs, typically when attempting to access or create storage on a file already in use.
Inheritance
System.Object
LockShareViolationException
Namespace: Syncfusion.CompoundFile.XlsIO
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class LockShareViolationException : ApplicationException
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. |