PropertyException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.