Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PropertyTypeMismatchException Class

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.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
[SerializableAttribute]
public sealed class PropertyTypeMismatchException : SmoException

The PropertyTypeMismatchException type exposes the following members.

  NameDescription
Public methodPropertyTypeMismatchException()Initializes a new instance of the PropertyTypeMismatchException class.
Public methodPropertyTypeMismatchException(String)Initializes a new instance of the PropertyTypeMismatchException class with the specified message.
Public methodPropertyTypeMismatchException(String, Exception)Initializes a new instance of the PropertyTypeMismatchException class with the specified message and specified inner exception.
Public methodPropertyTypeMismatchException(String, String, String)Initializes a new instance of the PropertyTypeMismatchException class for the specified property, and specified received type and expected type.
Top
  NameDescription
Public propertyData (Inherited from Exception.)
Public propertyExpectedTypeGets the expected data type for the property.
Public propertyHelpLinkGets the Help link for further information from Microsoft about the SMO exception. (Inherited from SmoException.)
Protected propertyHResult (Inherited from Exception.)
Public propertyInnerException (Inherited from Exception.)
Public propertyMessageGets the message that describes the exception. (Overrides Exception.Message.)
Public propertyPropertyNameGets the name of the property that received a value with the incorrect data type.
Public propertyReceivedTypeGets the data type that was received incorrectly by the property.
Public propertySmoExceptionTypeGets the type of SMO exception. (Overrides SmoException.SmoExceptionType.)
Public propertySource (Inherited from Exception.)
Public propertyStackTrace (Inherited from Exception.)
Public propertyTargetSite (Inherited from Exception.)
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBaseException (Inherited from Exception.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectDataReturns object data in order to facilitate remoting. (Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).)
Public methodGetType (Inherited from Exception.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodSetHelpContextSets the Help context value for the referenced exception. (Inherited from SmoException.)
Public methodToString (Inherited from Exception.)
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.