Délégué CopyToClipboardEventHandler
Delegate that handles the OnCopyToClipboard event that occurs when error information is copied to the Clipboard.
Espace de noms : Microsoft.SqlServer.MessageBox
Assembly : Microsoft.ExceptionMessageBox (en Microsoft.ExceptionMessageBox.dll)
Syntaxe
'Déclaration
Public Delegate Sub CopyToClipboardEventHandler ( _
sender As Object, _
e As CopyToClipboardEventArgs _
)
'Utilisation
Dim instance As New CopyToClipboardEventHandler(AddressOf HandlerMethod)
public delegate void CopyToClipboardEventHandler(
Object sender,
CopyToClipboardEventArgs e
)
public delegate void CopyToClipboardEventHandler(
Object^ sender,
CopyToClipboardEventArgs^ e
)
type CopyToClipboardEventHandler =
delegate of
sender:Object *
e:CopyToClipboardEventArgs -> unit
JScript prend en charge l'utilisation de délégués, mais pas la déclaration de nouveaux délégués.
Paramètres
- sender
Type : System. . :: . .Object
The source of the status event.
- e
Type : Microsoft.SqlServer.MessageBox. . :: . .CopyToClipboardEventArgs
A CopyToClipboardEventArgs object that contains the event data.
Notes
The OnCopyToClipboard event is used when the message box is 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 the OnCopyToClipboard event enables the action to be marshaled manually to the appropriate thread.