WrongPropertyValueException Class
The WrongPropertyValueException class represents the exception that is raised when a property is assigned the wrong value.
Inheritance Hierarchy
System.Object
  System.Exception
    Microsoft.SqlServer.Management.Common.SqlServerManagementException
      Microsoft.SqlServer.Management.Smo.SmoException
        Microsoft.SqlServer.Management.Smo.WrongPropertyValueException
Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public NotInheritable Class WrongPropertyValueException _
    Inherits SmoException
'Usage
Dim instance As WrongPropertyValueException
[SerializableAttribute]
public sealed class WrongPropertyValueException : SmoException
[SerializableAttribute]
public ref class WrongPropertyValueException sealed : public SmoException
[<SealedAttribute>]
[<SerializableAttribute>]
type WrongPropertyValueException =  
    class
        inherit SmoException
    end
public final class WrongPropertyValueException extends SmoException
The WrongPropertyValueException type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | WrongPropertyValueException() | Initializes a new instance of the WrongPropertyValueException class. | 
| .gif) | WrongPropertyValueException(String) | Initializes a new instance of the WrongPropertyValueException class with the specified message. | 
| .gif) | WrongPropertyValueException(Property) | Initializes a new instance of the WrongPropertyValueException class for the specified property. | 
| .gif) | WrongPropertyValueException(String, Exception) | Initializes a new instance of the WrongPropertyValueException class with the specified message and specified inner exception. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | Data | (Inherited from Exception.) | 
| .gif) | HelpLink | Gets the Help link for further information from Microsoft about the SMO exception. (Inherited from SmoException.) | 
| .gif) | HResult | (Inherited from Exception.) | 
| .gif) | InnerException | (Inherited from Exception.) | 
| .gif) | Message | Gets the message that is associated with the wrong property value exception. (Overrides Exception.Message.) | 
| .gif) | Property | Gets the property that was assigned the wrong property value that caused the wrong property value exception to be raised. | 
| .gif) | SmoExceptionType | Gets the type of SMO exception for the wrong property value exception. (Overrides SmoException.SmoExceptionType.) | 
| .gif) | Source | (Inherited from Exception.) | 
| .gif) | StackTrace | (Inherited from Exception.) | 
| .gif) | TargetSite | (Inherited from Exception.) | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Equals | (Inherited from Object.) | 
| .gif) | Finalize | (Inherited from Object.) | 
| .gif) | GetBaseException | (Inherited from Exception.) | 
| .gif) | GetHashCode | (Inherited from Object.) | 
| .gif) | GetObjectData | Gets object data regarding the WrongPropertyValue Exception. (Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).) | 
| .gif) | GetType | (Inherited from Exception.) | 
| .gif) | MemberwiseClone | (Inherited from Object.) | 
| .gif) | SetHelpContext | Sets the Help context value for the referenced exception. (Inherited from SmoException.) | 
| .gif) | ToString | (Inherited from Exception.) | 
Top
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.