Search Results for

    Show / Hide Table of Contents
    View Source

    Class InvalidCompositionException

    The exception that is thrown when a composition is invalid.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Exceptions
    Assembly: Umbraco.Core.dll
    Syntax
    public class InvalidCompositionException : Exception

    Constructors

    View Source

    InvalidCompositionException()

    Initializes a new instance of the InvalidCompositionException class.

    Declaration
    public InvalidCompositionException()
    View Source

    InvalidCompositionException(SerializationInfo, StreamingContext)

    Initializes a new instance of the InvalidCompositionException class.

    Declaration
    protected InvalidCompositionException(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.

    View Source

    InvalidCompositionException(String)

    Initializes a new instance of the InvalidCompositionException class.

    Declaration
    public InvalidCompositionException(string message)
    Parameters
    Type Name Description
    System.String message

    The message that describes the error.

    View Source

    InvalidCompositionException(String, Exception)

    Initializes a new instance of the InvalidCompositionException class.

    Declaration
    public InvalidCompositionException(string message, Exception innerException)
    Parameters
    Type Name Description
    System.String message

    The error message that explains the reason for the exception.

    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.

    View Source

    InvalidCompositionException(String, String, String[])

    Initializes a new instance of the InvalidCompositionException class.

    Declaration
    public InvalidCompositionException(string contentTypeAlias, string addedCompositionAlias, string[] propertyTypeAliases)
    Parameters
    Type Name Description
    System.String contentTypeAlias

    The content type alias.

    System.String addedCompositionAlias

    The added composition alias.

    System.String[] propertyTypeAliases

    The property type aliases.

    View Source

    InvalidCompositionException(String, String, String[], String[])

    Initializes a new instance of the InvalidCompositionException class.

    Declaration
    public InvalidCompositionException(string contentTypeAlias, string addedCompositionAlias, string[] propertyTypeAliases, string[] propertyGroupAliases)
    Parameters
    Type Name Description
    System.String contentTypeAlias

    The content type alias.

    System.String addedCompositionAlias

    The added composition alias.

    System.String[] propertyTypeAliases

    The property type aliases.

    System.String[] propertyGroupAliases

    The property group aliases.

    View Source

    InvalidCompositionException(String, String[])

    Initializes a new instance of the InvalidCompositionException class.

    Declaration
    public InvalidCompositionException(string contentTypeAlias, string[] propertyTypeAliases)
    Parameters
    Type Name Description
    System.String contentTypeAlias

    The content type alias.

    System.String[] propertyTypeAliases

    The property type aliases.

    Properties

    View Source

    AddedCompositionAlias

    Gets the added composition alias.

    Declaration
    public string AddedCompositionAlias { get; }
    Property Value
    Type Description
    System.String

    The added composition alias.

    View Source

    ContentTypeAlias

    Gets the content type alias.

    Declaration
    public string ContentTypeAlias { get; }
    Property Value
    Type Description
    System.String

    The content type alias.

    View Source

    PropertyGroupAliases

    Gets the property group aliases.

    Declaration
    public string[] PropertyGroupAliases { get; }
    Property Value
    Type Description
    System.String[]

    The property group aliases.

    View Source

    PropertyTypeAliases

    Gets the property type aliases.

    Declaration
    public string[] PropertyTypeAliases { get; }
    Property Value
    Type Description
    System.String[]

    The property type aliases.

    Methods

    View Source

    GetObjectData(SerializationInfo, StreamingContext)

    When overridden in a derived class, sets the System.Runtime.Serialization.SerializationInfo with information about the exception.

    Declaration
    public override void GetObjectData(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.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • InvalidCompositionException()
      • InvalidCompositionException(SerializationInfo, StreamingContext)
      • InvalidCompositionException(String)
      • InvalidCompositionException(String, Exception)
      • InvalidCompositionException(String, String, String[])
      • InvalidCompositionException(String, String, String[], String[])
      • InvalidCompositionException(String, String[])
    • Properties
      • AddedCompositionAlias
      • ContentTypeAlias
      • PropertyGroupAliases
      • PropertyTypeAliases
    • Methods
      • GetObjectData(SerializationInfo, StreamingContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX