ServerMessageEventArgs Constructor
Initializes a new instance of the ServerMessageEventArgs class for the specified event and with the specified error.
Espacio de nombres: Microsoft.SqlServer.Management.Common
Ensamblado: Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)
Sintaxis
'Declaración
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
- sqlError
Tipo: System.Data.SqlClient.SqlError
A SqlError system object value that specifies the error associated with the server message event.