OnCopyToClipboard 事件

Occurs when exception message text is copied from the message box to the Clipboard.

命名空间:  Microsoft.SqlServer.MessageBox
程序集:  Microsoft.ExceptionMessageBox(在 Microsoft.ExceptionMessageBox.dll 中)

语法

声明
Public Event OnCopyToClipboard As CopyToClipboardEventHandler
用法
Dim instance As ExceptionMessageBox
Dim handler As CopyToClipboardEventHandler

AddHandler instance.OnCopyToClipboard, handler
public event CopyToClipboardEventHandler OnCopyToClipboard
public:
 event CopyToClipboardEventHandler^ OnCopyToClipboard {
    void add (CopyToClipboardEventHandler^ value);
    void remove (CopyToClipboardEventHandler^ value);
}
member OnCopyToClipboard : IEvent<CopyToClipboardEventHandler,
    CopyToClipboardEventArgs>
JScript 支持使用事件,但不支持声明新事件。

注释

This event is used when the message box in displayed in a multi-threaded application from a thread that does not belong to a Microsoft Windows form. In this case, an exception occurs and this enables the action to be marshaled manually to the appropriate thread.