Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PropertyTypeMismatchException Constructor

 

Applies To: SQL Server 2016 Preview

Initializes a new instance of the PropertyTypeMismatchException class.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

NameDescription
System_CAPS_pubmethodPropertyTypeMismatchException()

Initializes a new instance of the PropertyTypeMismatchException class.

System_CAPS_pubmethodPropertyTypeMismatchException(String)

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

System_CAPS_pubmethodPropertyTypeMismatchException(String, Exception)

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

System_CAPS_pubmethodPropertyTypeMismatchException(String, String, String)

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

Return to top

PropertyTypeMismatchException Constructor ()

Initializes a new instance of the PropertyTypeMismatchException class.

public PropertyTypeMismatchException()

The default constructor initializes any fields to their default values.

Return to top

PropertyTypeMismatchException Constructor (String)

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

public PropertyTypeMismatchException(
	string message
)

Parameters

message
Type: System.String

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

Return to top

PropertyTypeMismatchException Constructor (String, Exception)

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

public PropertyTypeMismatchException(
	string message,
	Exception innerException
)

Parameters

message
Type: System.String

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

innerException
Type: System.Exception

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

Return to top

PropertyTypeMismatchException Constructor (String, String, String)

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

public PropertyTypeMismatchException(
	string propertyName,
	string receivedType,
	string expectedType
)

Parameters

propertyName
Type: System.String

A String value that specifies the name of the property.

receivedType
Type: System.String

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

expectedType
Type: System.String

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

Return to top
Show:
© 2015 Microsoft