共用方式為


ServerMessageEventArgs 建構函式

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

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
Public Sub New ( _
    sqlError As SqlError _
)
'用途
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
)

參數