CopyToClipboardEventArgs Class

 

Returns information when the OnCopyToClipboard event occurs.

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

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

public sealed class CopyToClipboardEventArgs : EventArgs

NameDescription
System_CAPS_pubmethodCopyToClipboardEventArgs()

Creates a new instance of CopyToClipboardEventArgs with the default properties.

System_CAPS_pubmethodCopyToClipboardEventArgs(String)

Creates a new instance of CopyToClipboardEventArgs with the specified copied text.

NameDescription
System_CAPS_pubpropertyClipboardText

Gets the error message information being copied.

System_CAPS_pubpropertyEventHandled

Gets or sets whether the OnCopyToClipboard event is handled.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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.

Return to top
Show: