Show / Hide Table of Contents

    Class InvalidPropertyException

    An exception thrown when a property is incorrectly defined.

    Inheritance
    System.Object
    System.Exception
    InvalidPropertyException
    Implements
    System.Runtime.Serialization.ISerializable
    Namespace: OpenCollar.Extensions.Configuration
    Assembly: OpenCollar.Extensions.Configuration.dll
    Syntax
    [Serializable]
    public class InvalidPropertyException : Exception, ISerializable
    Remarks

    Use the PropertyName property to discover the name of the property concerned.

    The following UML has been generated directly from the source code using Jebbs PlantUML .

    Constructors

    | Improve this Doc View Source

    InvalidPropertyException()

    Initializes a new instance of the InvalidPropertyException class.

    Declaration
    public InvalidPropertyException()
    | Improve this Doc View Source

    InvalidPropertyException(SerializationInfo, StreamingContext)

    Initializes a new instance of the InvalidPropertyException class.

    Declaration
    protected InvalidPropertyException(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

    InvalidPropertyException(String)

    Initializes a new instance of the InvalidPropertyException class.

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

    The message that describes the error.

    | Improve this Doc View Source

    InvalidPropertyException(String, Exception)

    Initializes a new instance of the InvalidPropertyException class.

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

    The error message that explains the reason for the exception.

    System.Exception innerException

    The exception that is the cause of the current exception, or null if no inner exception is specified.

    | Improve this Doc View Source

    InvalidPropertyException(String, String)

    Initializes a new instance of the InvalidPropertyException class.

    Declaration
    public InvalidPropertyException(string propertyName, string message)
    Parameters
    Type Name Description
    System.String propertyName

    The property name and parent type name of the property affected.

    System.String message

    The message that describes the error.

    | Improve this Doc View Source

    InvalidPropertyException(String, String, Exception)

    Initializes a new instance of the InvalidPropertyException class.

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

    The property name and parent type name of the property affected.

    System.String message

    The error message that explains the reason for the exception.

    System.Exception innerException

    The exception that is the cause of the current exception, or null if no inner exception is specified.

    Properties

    | Improve this Doc View Source

    PropertyName

    Gets or sets the property name and parent type name of the property affected.

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

    The property name and parent type name of the property affected.

    Methods

    | Improve this Doc 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.

    Overrides
    System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    Exceptions
    Type Condition
    System.ArgumentNullException

    info is null.

    Implements

    System.Runtime.Serialization.ISerializable

    See Also

    System.Exception
    • Improve this Doc
    • View Source
    Back to top
    Copyright © 2019-2020 Jonathan Evans
    Version: 0.2.232