InvalidVersionSmoOperationException InvalidVersionSmoOperationException InvalidVersionSmoOperationException Constructors

Definition

Overloads

InvalidVersionSmoOperationException() InvalidVersionSmoOperationException() InvalidVersionSmoOperationException()

Initializes a new instance of the InvalidVersionSmoOperationException class.

InvalidVersionSmoOperationException(ServerVersion) InvalidVersionSmoOperationException(ServerVersion) InvalidVersionSmoOperationException(ServerVersion)

Initializes a new instance of the InvalidVersionSmoOperationException class with the specified server version.

InvalidVersionSmoOperationException(String) InvalidVersionSmoOperationException(String) InvalidVersionSmoOperationException(String)

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

InvalidVersionSmoOperationException(String, Exception) InvalidVersionSmoOperationException(String, Exception) InvalidVersionSmoOperationException(String, Exception)

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

InvalidVersionSmoOperationException() InvalidVersionSmoOperationException() InvalidVersionSmoOperationException()

Initializes a new instance of the InvalidVersionSmoOperationException class.

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

Examples

Handling SMO Exceptions

Remarks

The default constructor initializes any fields to their default values.

InvalidVersionSmoOperationException(ServerVersion) InvalidVersionSmoOperationException(ServerVersion) InvalidVersionSmoOperationException(ServerVersion)

Initializes a new instance of the InvalidVersionSmoOperationException class with the specified server version.

public:
 InvalidVersionSmoOperationException(Microsoft::SqlServer::Management::Common::ServerVersion ^ version);
public InvalidVersionSmoOperationException (Microsoft.SqlServer.Management.Common.ServerVersion version);
Public Sub New (version As ServerVersion)
Parameters
version
Microsoft.SqlServer.Management.Common.ServerVersion Microsoft.SqlServer.Management.Common.ServerVersion Microsoft.SqlServer.Management.Common.ServerVersion

A Microsoft.SqlServer.Management.Common.ServerVersion object value that specifies the version of the instance of SQL Server.

Examples

Handling SMO Exceptions

InvalidVersionSmoOperationException(String) InvalidVersionSmoOperationException(String) InvalidVersionSmoOperationException(String)

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

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

A String value that specifies the message string for the Invalid Version SMO Operation Exception exception.

Examples

Handling SMO Exceptions

InvalidVersionSmoOperationException(String, Exception) InvalidVersionSmoOperationException(String, Exception) InvalidVersionSmoOperationException(String, Exception)

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

public:
 InvalidVersionSmoOperationException(System::String ^ message, Exception ^ innerException);
public InvalidVersionSmoOperationException (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 string for the Invalid Version SMO Operation exception.

innerException
Exception Exception Exception

An Exception object that specifies the inner exception for the Invalid Version SMO Operation exception.

Examples

Handling SMO Exceptions

Applies to