CopyToClipboardEventArgs 类

Returns information when the OnCopyToClipboard event occurs.

继承层次结构

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

命名空间:  Microsoft.SqlServer.MessageBox
程序集:  Microsoft.ExceptionMessageBox(在 Microsoft.ExceptionMessageBox.dll 中)

语法

声明
Public NotInheritable Class CopyToClipboardEventArgs _
    Inherits EventArgs
用法
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

CopyToClipboardEventArgs 类型公开以下成员。

构造函数

  名称 说明
公共方法 CopyToClipboardEventArgs() () () () Creates a new instance of CopyToClipboardEventArgs with the default properties.
公共方法 CopyToClipboardEventArgs(String) Creates a new instance of CopyToClipboardEventArgs with the specified copied text.

页首

属性

  名称 说明
公共属性 ClipboardText Gets the error message information being copied.
公共属性 EventHandled Gets or sets whether the OnCopyToClipboard event is handled.

页首

方法

  名称 说明
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString (从 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.

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。