Partager via


Constructeur InvalidSmoOperationException (String, SqlSmoState)

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Sub New ( _
    opName As String, _
    state As SqlSmoState _
)
'Utilisation
Dim opName As String 
Dim state As SqlSmoState 

Dim instance As New InvalidSmoOperationException(opName, _
    state)
public InvalidSmoOperationException(
    string opName,
    SqlSmoState state
)
public:
InvalidSmoOperationException(
    String^ opName, 
    SqlSmoState state
)
new : 
        opName:string * 
        state:SqlSmoState -> InvalidSmoOperationException
public function InvalidSmoOperationException(
    opName : String, 
    state : SqlSmoState
)

Paramètres

  • opName
    Type : System.String
    A String value that specifies the name of the SMO operation that is not valid.

Exemples

Gestion des exceptions SMO

Voir aussi

Référence

InvalidSmoOperationException Classe

Surcharge InvalidSmoOperationException

Espace de noms Microsoft.SqlServer.Management.Smo