WrongPropertyValueException WrongPropertyValueException WrongPropertyValueException Constructors

Definition

Overloads

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.

WrongPropertyValueException() WrongPropertyValueException() WrongPropertyValueException()

Initializes a new instance of the WrongPropertyValueException class.

public:
 WrongPropertyValueException();
public WrongPropertyValueException ();
Public Sub New ()

Examples

Handling SMO Exceptions

Remarks

The default constructor initializes any fields to their default values.

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

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

public:
 WrongPropertyValueException(Microsoft::SqlServer::Management::Smo::Property ^ propertyObject);
public WrongPropertyValueException (Microsoft.SqlServer.Management.Smo.Property propertyObject);
Public Sub New (propertyObject As Property)
Parameters
propertyObject
Property Property Property

A Property object that specifies the property that was assigned the wrong value.

Examples

Handling SMO Exceptions

Remarks

Initializes a new instance of the WrongPropertyValueException class.

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

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

public:
 WrongPropertyValueException(System::String ^ message);
public WrongPropertyValueException (string message);
Public Sub New (message As String)
Parameters
message
String String String

A String value that specifies the message text that is associated with the wrong property value exception.

Examples

Handling SMO Exceptions

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.

public:
 WrongPropertyValueException(System::String ^ message, Exception ^ innerException);
public WrongPropertyValueException (string message, Exception innerException);
Public Sub New (message As String, innerException As Exception)
Parameters
message
String String String

A String value that specifies the message text that is associated with the wrong property value exception.

innerException
Exception Exception Exception

An Exception system object value that specifies the exception that caused the wrong property value exception.

Examples

Handling SMO Exceptions

Applies to