[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.InvalidParentContentException

Class InvalidParentContentException

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

The exception that is thrown when trying to insert a content object into a non-allowed parent content.

public class InvalidParentContentException : Exception, ISerializable
Inheritance
object
System.Exception
InvalidParentContentException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.MemberwiseClone()

Constructors

InvalidParentContentException()

Initializes a new instance of the InvalidParentContentException class.

public InvalidParentContentException()

InvalidParentContentException(ContentObject, ContentControlLevel)

Initializes a new instance of the InvalidParentContentException class.

public InvalidParentContentException(ContentObject content, ContentControlLevel parentLevel)

Parameters

content ContentObject

The ContentObject to insert.

parentLevel ContentControlLevel

The parent content control level.

InvalidParentContentException(ContentObject, Type)

Initializes a new instance of the InvalidParentContentException class.

public InvalidParentContentException(ContentObject content, Type parent)

Parameters

content ContentObject

The ContentObject to insert.

parent System.Type

The parent content type.

InvalidParentContentException(string)

Initializes a new instance of the InvalidParentContentException class.

public InvalidParentContentException(string message)

Parameters

message string

The message that describes the error.