Class ContentNotFoundException
Thrown when a Content
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class ContentNotFoundException : EPiServerException
Remarks
This exception is commonly thrown when you are accessing a content that does
not exist using IContent
Constructors
ContentNotFoundException()
Initializes a new instance of the Content
Declaration
public ContentNotFoundException()
ContentNotFoundException(ContentReference)
Initializes a new instance of the Content
Declaration
public ContentNotFoundException(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link. |
ContentNotFoundException(Guid)
Initializes a new instance of the Content
Declaration
public ContentNotFoundException(Guid contentGuid)
Parameters
Type | Name | Description |
---|---|---|
System. |
contentGuid | The content GUID. |
ContentNotFoundException(SerializationInfo, StreamingContext)
Initializes a new instance of the Content
Declaration
protected ContentNotFoundException(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. |
ContentNotFoundException(String)
Initializes a new instance of the Content
Declaration
public ContentNotFoundException(string errorMessage)
Parameters
Type | Name | Description |
---|---|---|
System. |
errorMessage |
ContentNotFoundException(String, Exception)
Initializes the new instance of Content
Declaration
public ContentNotFoundException(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
ContentGuid
Gets the content GUID.
Declaration
public Guid ContentGuid { get; set; }
Property Value
Type | Description |
---|---|
System. |
The content GUID. |
ContentLink
Gets the content link.
Declaration
public ContentReference ContentLink { get; set; }
Property Value
Type | Description |
---|---|
Content |
The content link. |