PropertyTypeMismatchException PropertyTypeMismatchException PropertyTypeMismatchException Constructors

Definition

Overloads

PropertyTypeMismatchException() PropertyTypeMismatchException() PropertyTypeMismatchException()

Initializes a new instance of the PropertyTypeMismatchException class.

PropertyTypeMismatchException(String) PropertyTypeMismatchException(String) PropertyTypeMismatchException(String)

Initializes a new instance of the PropertyTypeMismatchException class with the specified message.

PropertyTypeMismatchException(String, Exception) PropertyTypeMismatchException(String, Exception) PropertyTypeMismatchException(String, Exception)

Initializes a new instance of the PropertyTypeMismatchException class with the specified message and specified inner exception.

PropertyTypeMismatchException(String, String, String) PropertyTypeMismatchException(String, String, String) PropertyTypeMismatchException(String, String, String)

Initializes a new instance of the PropertyTypeMismatchException class for the specified property, and specified received type and expected type.

PropertyTypeMismatchException() PropertyTypeMismatchException() PropertyTypeMismatchException()

Initializes a new instance of the PropertyTypeMismatchException class.

public:
 PropertyTypeMismatchException();
public PropertyTypeMismatchException ();
Public Sub New ()

Examples

Handling SMO Exceptions

Remarks

The default constructor initializes any fields to their default values.

PropertyTypeMismatchException(String) PropertyTypeMismatchException(String) PropertyTypeMismatchException(String)

Initializes a new instance of the PropertyTypeMismatchException class with the specified message.

public:
 PropertyTypeMismatchException(System::String ^ message);
public PropertyTypeMismatchException (string message);
Public Sub New (message As String)
Parameters
message
String String String

A String value that specifies the message string for the property type mismatch exception.

Examples

Handling SMO Exceptions

PropertyTypeMismatchException(String, Exception) PropertyTypeMismatchException(String, Exception) PropertyTypeMismatchException(String, Exception)

Initializes a new instance of the PropertyTypeMismatchException class with the specified message and specified inner exception.

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

A String value that specifies the message string for the property type mismatch exception.

innerException
Exception Exception Exception

An Exception object that specifies the inner exception for the Property Type Mismatch exception.

Examples

Handling SMO Exceptions

PropertyTypeMismatchException(String, String, String) PropertyTypeMismatchException(String, String, String) PropertyTypeMismatchException(String, String, String)

Initializes a new instance of the PropertyTypeMismatchException class for the specified property, and specified received type and expected type.

public:
 PropertyTypeMismatchException(System::String ^ propertyName, System::String ^ receivedType, System::String ^ expectedType);
public PropertyTypeMismatchException (string propertyName, string receivedType, string expectedType);
Public Sub New (propertyName As String, receivedType As String, expectedType As String)
Parameters
propertyName
String String String

A String value that specifies the name of the property.

receivedType
String String String

A String value that specifies the data type that was received incorrectly.

expectedType
String String String

A String value that specifies the data type that is correct for the referenced property.

Examples

Handling SMO Exceptions

Applies to