[]
The exception that is thrown when trying to insert a content object into a non-allowed parent content.
public class InvalidParentContentException : Exception, ISerializable, _Exception
Initializes a new instance of the InvalidParentContentException class.
public InvalidParentContentException()
Initializes a new instance of the InvalidParentContentException class.
public InvalidParentContentException(ContentObject content, ContentControlLevel parentLevel)
content ContentObjectThe ContentObject to insert.
parentLevel ContentControlLevelThe parent content control level.
Initializes a new instance of the InvalidParentContentException class.
public InvalidParentContentException(ContentObject content, Type parent)
content ContentObjectThe ContentObject to insert.
parent TypeThe parent content type.
Initializes a new instance of the InvalidParentContentException class.
public InvalidParentContentException(string message)
message stringThe message that describes the error.