Compartilhar via


Construtor ServerMessageEventArgs

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

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (em Microsoft.SqlServer.ConnectionInfo.dll)

Sintaxe

'Declaração
Public Sub New ( _
    sqlError As SqlError _
)
'Uso
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
)

Parâmetros