Share via


Classe CopyToClipboardEventArgs

Returns information when the OnCopyToClipboard event occurs.

Hierarquia de herança

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

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

Sintaxe

'Declaração
Public NotInheritable Class CopyToClipboardEventArgs _
    Inherits EventArgs
'Uso
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

O tipo CopyToClipboardEventArgs expõe os membros a seguir.

Construtores

  Nome Descrição
Método público CopyToClipboardEventArgs() () () () Creates a new instance of CopyToClipboardEventArgs with the default properties.
Método público CopyToClipboardEventArgs(String) Creates a new instance of CopyToClipboardEventArgs with the specified copied text.

Início

Propriedades

  Nome Descrição
Propriedade pública ClipboardText Gets the error message information being copied.
Propriedade pública EventHandled Gets or sets whether the OnCopyToClipboard event is handled.

Início

Métodos

  Nome Descrição
Método público Equals (Herdado de Object.)
Método protegido Finalize (Herdado de Object.)
Método público GetHashCode (Herdado de Object.)
Método público GetType (Herdado de Object.)
Método protegido MemberwiseClone (Herdado de Object.)
Método público ToString (Herdado de Object.)

Início

Comentários

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.

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência