Edit

Share via


PropertyException Constructors

Definition

Overloads

PropertyException(String)

Initializes a new instance of the PropertyException class with the property that caused the exception.

PropertyException(String, String)

Initializes a new instance of the PropertyException class with the property that caused the exception and the error message text.

PropertyException(String, String, Exception)

Initializes a new instance of the PropertyException class with the property that caused the exception, the error message text, and the inner exception.

PropertyException(String)

Initializes a new instance of the PropertyException class with the property that caused the exception.

public:
 PropertyException(System::String ^ name);
public PropertyException (string name);
Public Sub New (name As String)

Parameters

name
String

The name of the property that caused the exception.

Applies to

PropertyException(String, String)

Initializes a new instance of the PropertyException class with the property that caused the exception and the error message text.

public:
 PropertyException(System::String ^ message, System::String ^ name);
public PropertyException (string message, string name);
Public Sub New (message As String, name As String)

Parameters

message
String

The error message text.

name
String

The name of the property that caused the exception.

Applies to

PropertyException(String, String, Exception)

Initializes a new instance of the PropertyException class with the property that caused the exception, the error message text, and the inner exception.

public:
 PropertyException(System::String ^ message, System::String ^ name, Exception ^ innerException);
public PropertyException (string message, string name, Exception innerException);
Public Sub New (message As String, name As String, innerException As Exception)

Parameters

message
String

The error message text.

name
String

The name of the property that caused the exception.

innerException
Exception

The inner exception.

Applies to