CopyToClipboardEventHandler 委派
Delegate that handles the OnCopyToClipboard event that occurs when error information is copied to the Clipboard.
命名空間: Microsoft.SqlServer.MessageBox
組件: Microsoft.ExceptionMessageBox (在 Microsoft.ExceptionMessageBox.dll 中)
語法
'宣告
Public Delegate Sub CopyToClipboardEventHandler ( _
sender As Object, _
e As CopyToClipboardEventArgs _
)
'用途
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 支援委託的使用,但不支援新委託的宣告。
參數
- sender
型別:System. . :: . .Object
The source of the status event.
- e
型別:Microsoft.SqlServer.MessageBox. . :: . .CopyToClipboardEventArgs
A CopyToClipboardEventArgs object that contains the event data.
備註
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.