Partager via


Événement ExceptionMessageBox.OnCopyToClipboard

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

Espace de noms :  Microsoft.SqlServer.MessageBox
Assembly :  Microsoft.ExceptionMessageBox (en Microsoft.ExceptionMessageBox.dll)

Syntaxe

'Déclaration
Public Event OnCopyToClipboard As CopyToClipboardEventHandler
'Utilisation
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 prend en charge l'utilisation d'événements, mais pas la déclaration de nouveaux événements.

Notes

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.

Voir aussi

Référence

ExceptionMessageBox Classe

Espace de noms Microsoft.SqlServer.MessageBox