CopyToClipboardEventHandler Delegate

Delegate that handles the OnCopyToClipboard event that occurs when error information is copied to the Clipboard.

Namespace: Microsoft.SqlServer.MessageBox
Assembly: Microsoft.ExceptionMessageBox (in microsoft.exceptionmessagebox.dll)

Syntax

'Declaration
Public Delegate Sub CopyToClipboardEventHandler ( _
    sender As Object, _
    e As CopyToClipboardEventArgs _
)
public delegate void CopyToClipboardEventHandler (
    Object sender,
    CopyToClipboardEventArgs e
)
public delegate void CopyToClipboardEventHandler (
    Object^ sender, 
    CopyToClipboardEventArgs^ e
)
/** @delegate */
public delegate void CopyToClipboardEventHandler (
    Object sender, 
    CopyToClipboardEventArgs e
)
JScript supports the use of delegates, but not the declaration of new ones.

Parameters

  • sender
    The source of the status event.

Remarks

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

Microsoft.SqlServer.MessageBox Namespace