WrongPropertyValueException WrongPropertyValueException WrongPropertyValueException Class

Definition

The WrongPropertyValueException class represents the exception that is raised when a property is assigned the wrong value.

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

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

WrongPropertyValueException() WrongPropertyValueException() WrongPropertyValueException()

Initializes a new instance of the WrongPropertyValueException class.

WrongPropertyValueException(Property) WrongPropertyValueException(Property) WrongPropertyValueException(Property)

Initializes a new instance of the WrongPropertyValueException class for the specified property.

WrongPropertyValueException(String) WrongPropertyValueException(String) WrongPropertyValueException(String)

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

WrongPropertyValueException(String, Exception) WrongPropertyValueException(String, Exception) WrongPropertyValueException(String, Exception)

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

Properties

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 is associated with the wrong property value exception.

Property Property Property

Gets the property that was assigned the wrong property value that caused the wrong property value exception to be raised.

SmoExceptionType SmoExceptionType SmoExceptionType

Gets the type of SMO exception for the wrong property value exception.

Methods

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

Gets object data regarding the WrongPropertyValue Exception.

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

Sets the Help context value for the referenced exception.

(Inherited from SmoException)

Applies to