Condividi tramite


InvalidSmoOperationException Constructor (String, SqlSmoState)

Initializes a new instance of the InvalidSmoOperationException class with the specified message and SQL Server Management Objects (SMO) state.

Spazio dei nomi: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintassi

'Dichiarazione
Public Sub New ( _
    opName As String, _
    state As SqlSmoState _
)
public InvalidSmoOperationException (
    string opName,
    SqlSmoState state
)
public:
InvalidSmoOperationException (
    String^ opName, 
    SqlSmoState state
)
public InvalidSmoOperationException (
    String opName, 
    SqlSmoState state
)
public function InvalidSmoOperationException (
    opName : String, 
    state : SqlSmoState
)

Parametri

  • opName
    A String value that specifies the name of the SMO operation that is not valid.
  • state
    A SqlSmoState object value that specifies the state of the SMO operation.

Osservazioni

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Esempio

How to: Catch an Exception in Visual Basic .NET

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

InvalidSmoOperationException Class
InvalidSmoOperationException Members
Microsoft.SqlServer.Management.Smo Namespace

Altre risorse

Handling SMO Exceptions