InvalidSmoOperationException InvalidSmoOperationException InvalidSmoOperationException Constructors

Definition

Overloads

InvalidSmoOperationException() InvalidSmoOperationException() InvalidSmoOperationException()

Initializes a new instance of the InvalidSmoOperationException class.

InvalidSmoOperationException(String) InvalidSmoOperationException(String) InvalidSmoOperationException(String)

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

InvalidSmoOperationException(String, SqlSmoState) InvalidSmoOperationException(String, SqlSmoState) InvalidSmoOperationException(String, SqlSmoState)

Initializes a new instance of the InvalidSmoOperationException class with the specified message and SMO state.

InvalidSmoOperationException(String, Exception) InvalidSmoOperationException(String, Exception) InvalidSmoOperationException(String, Exception)

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

InvalidSmoOperationException() InvalidSmoOperationException() InvalidSmoOperationException()

Initializes a new instance of the InvalidSmoOperationException class.

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

Examples

Handling SMO Exceptions

Remarks

The default constructor initializes any fields to their default values.

InvalidSmoOperationException(String) InvalidSmoOperationException(String) InvalidSmoOperationException(String)

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

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

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

Examples

Handling SMO Exceptions

InvalidSmoOperationException(String, SqlSmoState) InvalidSmoOperationException(String, SqlSmoState) InvalidSmoOperationException(String, SqlSmoState)

Initializes a new instance of the InvalidSmoOperationException class with the specified message and SMO state.

public:
 InvalidSmoOperationException(System::String ^ opName, Microsoft::SqlServer::Management::Smo::SqlSmoState state);
public InvalidSmoOperationException (string opName, Microsoft.SqlServer.Management.Smo.SqlSmoState state);
Public Sub New (opName As String, state As SqlSmoState)
Parameters
opName
String String String

A String value that specifies the name of the SMO operation that is not valid.

state
SqlSmoState SqlSmoState SqlSmoState

A SqlSmoState object value that specifies the state of the SMO operation.

Examples

Handling SMO Exceptions

InvalidSmoOperationException(String, Exception) InvalidSmoOperationException(String, Exception) InvalidSmoOperationException(String, Exception)

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

public:
 InvalidSmoOperationException(System::String ^ message, Exception ^ innerException);
public InvalidSmoOperationException (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 SMO Operation exception.

innerException
Exception Exception Exception

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

Examples

Handling SMO Exceptions

Applies to