Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WrongPropertyValueException Constructor

 

Applies To: SQL Server 2016 Preview

Initializes a new instance of the WrongPropertyValueException class.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

NameDescription
System_CAPS_pubmethodWrongPropertyValueException()

Initializes a new instance of the WrongPropertyValueException class.

System_CAPS_pubmethodWrongPropertyValueException(Property)

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

System_CAPS_pubmethodWrongPropertyValueException(String)

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

System_CAPS_pubmethodWrongPropertyValueException(String, Exception)

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

Return to top

WrongPropertyValueException Constructor ()

Initializes a new instance of the WrongPropertyValueException class.

public WrongPropertyValueException()

The default constructor initializes any fields to their default values.

Return to top

WrongPropertyValueException Constructor (Property)

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

public WrongPropertyValueException(
	Property propertyObject
)

Parameters

propertyObject
Type: Microsoft.SqlServer.Management.Smo.Property

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

Initializes a new instance of the WrongPropertyValueException class.

Return to top

WrongPropertyValueException Constructor (String)

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

public WrongPropertyValueException(
	string message
)

Parameters

message
Type: System.String

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

Return to top

WrongPropertyValueException Constructor (String, Exception)

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

public WrongPropertyValueException(
	string message,
	Exception innerException
)

Parameters

message
Type: System.String

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

innerException
Type: System.Exception

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

Return to top
Show:
© 2015 Microsoft