PropertyTypeMismatchException PropertyTypeMismatchException PropertyTypeMismatchException Class

Definition

The PropertyTypeMismatchException class represents the exception raised when an attempt is made to set the property with a value that has the incorrect data type.

public ref class PropertyTypeMismatchException sealed : Microsoft::SqlServer::Management::Smo::SmoException
public sealed class PropertyTypeMismatchException : Microsoft.SqlServer.Management.Smo.SmoException
Public NotInheritable Class PropertyTypeMismatchException
Inherits SmoException
Inheritance
Microsoft.SqlServer.Management.Common.SqlServerManagementExceptionMicrosoft.SqlServer.Management.Common.SqlServerManagementExceptionMicrosoft.SqlServer.Management.Common.SqlServerManagementException
PropertyTypeMismatchExceptionPropertyTypeMismatchExceptionPropertyTypeMismatchException

Examples

Handling SMO Exceptions

Remarks

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Constructors

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.

Properties

ExpectedType ExpectedType ExpectedType

Gets the expected data type for the property.

HelpLink HelpLink HelpLink

Gets the Help link for further information from Microsoft about the SMO exception.

(Inherited from SmoException)
Message Message Message

Gets the message that describes the exception.

PropertyName PropertyName PropertyName

Gets the name of the property that received a value with the incorrect data type.

ReceivedType ReceivedType ReceivedType

Gets the data type that was received incorrectly by the property.

SmoExceptionType SmoExceptionType SmoExceptionType

Gets the type of SMO exception.

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Returns object data in order to facilitate remoting.

SetHelpContext(String) SetHelpContext(String) SetHelpContext(String)

Sets the Help context value for the referenced exception.

(Inherited from SmoException)

Applies to