共用方式為


RemoteLoginFailed 事件

This event occurs when a remote login fails to connect to the instance of SQL Server.

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

語法

'宣告
Public Event RemoteLoginFailed As ServerMessageEventHandler
'用途
Dim instance As ConnectionManager
Dim handler As ServerMessageEventHandler

AddHandler instance.RemoteLoginFailed, handler
public event ServerMessageEventHandler RemoteLoginFailed
public:
 event ServerMessageEventHandler^ RemoteLoginFailed {
    void add (ServerMessageEventHandler^ value);
    void remove (ServerMessageEventHandler^ value);
}
member RemoteLoginFailed : IEvent<ServerMessageEventHandler,
    ServerMessageEventArgs>
JScript 支援事件的使用,但不支援新事件的宣告。

備註

The event is handled by the specified event handler.