Partager via


Classe CopyToClipboardEventArgs

Returns information when the OnCopyToClipboard event occurs.

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.MessageBox
Assembly :  Microsoft.ExceptionMessageBox (en Microsoft.ExceptionMessageBox.dll)

Syntaxe

'Déclaration
Public NotInheritable Class CopyToClipboardEventArgs _
    Inherits EventArgs
'Utilisation
Dim instance As CopyToClipboardEventArgs
public sealed class CopyToClipboardEventArgs : EventArgs
public ref class CopyToClipboardEventArgs sealed : public EventArgs
[<SealedAttribute>]
type CopyToClipboardEventArgs =  
    class
        inherit EventArgs
    end
public final class CopyToClipboardEventArgs extends EventArgs

Le type CopyToClipboardEventArgs expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique CopyToClipboardEventArgs() () () () Creates a new instance of CopyToClipboardEventArgs with the default properties.
Méthode publique CopyToClipboardEventArgs(String) Creates a new instance of CopyToClipboardEventArgs with the specified copied text.

Haut de la page

Propriétés

  Nom Description
Propriété publique ClipboardText Gets the error message information being copied.
Propriété publique EventHandled Gets or sets whether the OnCopyToClipboard event is handled.

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToString (hérité de Object.)

Haut de la page

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

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.