Class AccessDeniedException
Exception thrown when access to a EPiServer resource is denied.
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class AccessDeniedException : EPiServerException
Remarks
This exception is commonly thrown when you are denied access to perform an
action on a specific content using IContent
Constructors
AccessDeniedException()
Initializes the new instance of Access
Declaration
public AccessDeniedException()
AccessDeniedException(ContentReference)
Initializes the new instance of Access
Declaration
public AccessDeniedException(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink |
AccessDeniedException(ContentReference, String)
Initializes the new instance of Access
Declaration
public AccessDeniedException(ContentReference contentLink, string details)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link. |
System. |
details | The details. |
AccessDeniedException(SerializationInfo, StreamingContext)
Initializes a new instance of the Access
Declaration
protected AccessDeniedException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | The object that holds the serialized object data. |
System. |
context | The contextual information about the source or destination. |
AccessDeniedException(String)
Initializes the new instance of Access
Declaration
public AccessDeniedException(string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The error message that explains the reason for the exception. |
AccessDeniedException(String, Exception)
Initializes the new instance of Access
Declaration
public AccessDeniedException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The error message that explains the reason for the exception. |
System. |
innerException | The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. |
Properties
ContentLink
The content that generated the exception.
Declaration
public ContentReference ContentLink { get; }
Property Value
Type | Description |
---|---|
Content |