Share via


PropertyConstraintException Constructors

Definition

Overloads

PropertyConstraintException()

Initializes a new instance of the PropertyConstraintException class with default message.

PropertyConstraintException(String)

Initializes a new instance of the PropertyConstraintException class with supplied message.

PropertyConstraintException(String, Exception)

Initializes a new instance of the PropertyConstraintException class with supplied message and inner exception.

PropertyConstraintException(String, String)

Initializes a new instance of the PropertyConstraintException class.

PropertyConstraintException(String, String, Exception)

Initializes a new instance of the PropertyConstraintException class.

PropertyConstraintException()

Initializes a new instance of the PropertyConstraintException class with default message.

public PropertyConstraintException();
Public Sub New ()

Applies to

PropertyConstraintException(String)

Initializes a new instance of the PropertyConstraintException class with supplied message.

public PropertyConstraintException(string message);
new System.Data.Entity.Core.PropertyConstraintException : string -> System.Data.Entity.Core.PropertyConstraintException
Public Sub New (message As String)

Parameters

message
String

A localized error message.

Applies to

PropertyConstraintException(String, Exception)

Initializes a new instance of the PropertyConstraintException class with supplied message and inner exception.

public PropertyConstraintException(string message, Exception innerException);
new System.Data.Entity.Core.PropertyConstraintException : string * Exception -> System.Data.Entity.Core.PropertyConstraintException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

A localized error message.

innerException
Exception

The inner exception.

Applies to

PropertyConstraintException(String, String)

Initializes a new instance of the PropertyConstraintException class.

public PropertyConstraintException(string message, string propertyName);
new System.Data.Entity.Core.PropertyConstraintException : string * string -> System.Data.Entity.Core.PropertyConstraintException
Public Sub New (message As String, propertyName As String)

Parameters

message
String

A localized error message.

propertyName
String

The name of the property.

Applies to

PropertyConstraintException(String, String, Exception)

Initializes a new instance of the PropertyConstraintException class.

public PropertyConstraintException(string message, string propertyName, Exception innerException);
new System.Data.Entity.Core.PropertyConstraintException : string * string * Exception -> System.Data.Entity.Core.PropertyConstraintException
Public Sub New (message As String, propertyName As String, innerException As Exception)

Parameters

message
String

A localized error message.

propertyName
String

The name of the property.

innerException
Exception

The inner exception.

Applies to