Class FileSecurityException
The exception that is thrown when the caller does not have the required permission to access a file.
Inheritance
Namespace: Umbraco.Core.IO
Assembly: Umbraco.Core.dll
Syntax
[Obsolete("Throw an UnauthorizedAccessException instead.")]
[Serializable]
public class FileSecurityException : Exception, ISerializable, _Exception
Constructors
View SourceFileSecurityException()
Initializes a new instance of the FileSecurityException class.
Declaration
public FileSecurityException()
FileSecurityException(SerializationInfo, StreamingContext)
Initializes a new instance of the FileSecurityException class.
Declaration
protected FileSecurityException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
FileSecurityException(String)
Initializes a new instance of the FileSecurityException class.
Declaration
public FileSecurityException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
FileSecurityException(String, Exception)
Initializes a new instance of the FileSecurityException class.
Declaration
public FileSecurityException(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 (langword_csharp_Nothing in Visual Basic) if no inner exception is specified. |