Redigera

Dela via


PropertyConstraintException Constructors

Definition

Initializes a new instance of the PropertyConstraintException class.

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 PropertyConstraintException ();
Public Sub New ()

Applies to

PropertyConstraintException(String)

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

public:
 PropertyConstraintException(System::String ^ message);
public PropertyConstraintException (string message);
new System.Data.PropertyConstraintException : string -> System.Data.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(System::String ^ message, Exception ^ innerException);
public PropertyConstraintException (string message, Exception innerException);
new System.Data.PropertyConstraintException : string * Exception -> System.Data.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(System::String ^ message, System::String ^ propertyName);
public PropertyConstraintException (string message, string propertyName);
new System.Data.PropertyConstraintException : string * string -> System.Data.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(System::String ^ message, System::String ^ propertyName, Exception ^ innerException);
public PropertyConstraintException (string message, string propertyName, Exception innerException);
new System.Data.PropertyConstraintException : string * string * Exception -> System.Data.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