Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CopyToClipboardEventArgs Class

Returns information when the OnCopyToClipboard event occurs.

System.Object
  System.EventArgs
    Microsoft.SqlServer.MessageBox.CopyToClipboardEventArgs

Namespace:  Microsoft.SqlServer.MessageBox
Assembly:  Microsoft.ExceptionMessageBox (in Microsoft.ExceptionMessageBox.dll)
public sealed class CopyToClipboardEventArgs : EventArgs

The CopyToClipboardEventArgs type exposes the following members.

  NameDescription
Public methodCopyToClipboardEventArgs()Creates a new instance of CopyToClipboardEventArgs with the default properties.
Public methodCopyToClipboardEventArgs(String)Creates a new instance of CopyToClipboardEventArgs with the specified copied text.
Top
  NameDescription
Public propertyClipboardTextGets the error message information being copied.
Public propertyEventHandledGets or sets whether the OnCopyToClipboard event is handled.
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

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. In this case, the EventHandled property should be set to true to prevent the exception message box from continuing with the copy operation.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.