Partager via


Constructeur ServerMessageEventArgs

Initializes a new instance of the ServerMessageEventArgs class for the specified event and with the specified error.

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

Syntaxe

'Déclaration
Public Sub New ( _
    sqlError As SqlError _
)
'Utilisation
Dim sqlError As SqlError

Dim instance As New ServerMessageEventArgs(sqlError)
public ServerMessageEventArgs(
    SqlError sqlError
)
public:
ServerMessageEventArgs(
    SqlError^ sqlError
)
new : 
        sqlError:SqlError -> ServerMessageEventArgs
public function ServerMessageEventArgs(
    sqlError : SqlError
)

Paramètres